Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 12 of 12

Thread: Need help For Assignment (Problem with Loop Control Structure)

  1. #1
    Junior Member
    Join Date
    Sep 2017
    Posts
    5
    My Mood
    Stressed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need help For Assignment (Problem with Loop Control Structure)

    I am new to java this is my programming Assignment , I will be grateful if anyone can show me or fixed my code that i placed below to produce the following output as shown here. We are only allowed to use control structures such as for loop, if else, if, do-while , while and switch statements for this program. We are not allowed to use methods.The problem i have with my code is that after the user enter its desired drinks and food from the food and drinks menu respectively, it return to the order menu but i want it to be able to return to the main menu when the user press the no '3' from the order menu, currently when the user press '3' the order menu just reappear!!

    The following shows example output for this program that i want to achieved:
    SJ Restaurant Ordering System
    Main Menu
    (1) Place Order
    (2) Payment
    (3) Quit
    Enter your choice: 1

    Order Menu
    (1) Drinks
    (2) Food
    (3) Back to Main Menu
    Enter your choice: 2

    Food Menu
    (1) Nasi Lemak RM5.00
    (2) Roti Canai RM1.50
    (3) Fried Noodle RM3.50
    (4) Back to Order Menu
    Enter order: 1
    Enter quantity: 2

    Food Menu
    (1) Nasi Lemak RM5.00
    (2) Roti Canai RM1.50
    (3) Fried Noodle RM3.50
    (4) Back to Order Menu
    Enter order: 4

    Order Menu
    (1) Drinks
    (2) Food
    (3) Back to Main Menu
    Enter your choice: 3

    Main Menu
    (1) Place Order
    (2) Payment
    (3) Quit
    Enter your choice: 2
    Order Quantity Unit Price Total
    Nasi Lemak 2 5.00 10.00

    Overall Total: 10.00

    Payment: 50.00

    Balance: 40.00

    The current output of my code:
    --------------------------------------------
    SJ Restaurant Ordering System
    --------------------------------------------
    Main Menu
    --------------
    (1) Place Order
    (2) Payment
    (3) Quit
    Enter your choice:1

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    1

    Drinks Menu
    --------------
    (1)Milo + + RM5.00
    (2) Coffee + RM1.50
    (3) Tea+ RM3.50
    (4) Back to Order Menu
    Enter order:
    1
    Enter quantity:
    2

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    2

    Food Menu
    --------------
    (1)Burger + + RM5.00
    (2) Pizza + RM1.50
    (3) Nasilemak+ RM3.50
    (4) Back to Order Menu
    Enter order:
    1
    Enter quantity:
    3

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    3

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:

    The problem as it can be seen here when the user press '3' it should return to the main menu but it does not

    package assignment1;
     
    import java.util.Scanner;
     
    public class Assignment1Question2 {
     
    public static void main(String[] args) 
     
    {
     
      Scanner read = new Scanner(System.in);
     
        int  mainmenuchoice;
     
        int ordermenu;
     
        double quantity=0;
     
       double quantity2=0;
     
          int drinksorder=0;
     
           int foodorder=0;
     
           int order3=0;
     
        double subtotal=0;
     
        double subtotal2=0;
     
         double milo=5.50;
     
        double coffee=1.50;
     
       double tea=3.50;
     
      double burger=5.00;
     
       double pizza=1.50;
     
        doublenasilemak=3.50;
     
        double discount;
     
        double price;
     
         double discount2;
     
        double totalfinal;
     
         String output;
     
        String output2;
     
        double overalltotal;
     
         double total=0;
     
        double sum;
     
     double sum2;
     
       double total2=0;
     
     
          System.out.println("--------------------------------------------");
     
           System.out.println("SJ Restaurant Ordering System");
     
         System.out.println("--------------------------------------------");
     
          System.out.println("Main Menu");
     
          System.out.println("--------------");
     
         System.out.println("(1) Place Order");
     
          System.out.println("(2) Payment");
     
         System.out.println("(3) Quit");
     
         System.out.print("Enter your choice:");    
     
        choice=read.nextInt();
     
         while(mainmenuchoice!=3){
     
               if(mainmenuchoice==1)
     
              {
     
               System.out.println("Order Menu");
     
               System.out.println("------------");
     
              System.out.println("(1) Drinks");
     
                System.out.println("(2) Food");
     
               System.out.println("(3) Back to Main Menu)");
     
              System.out.println("Enter your choice:");
     
             ordermenu=read.nextInt();
     
                if(ordermenu==1)
     
           {
     
                  System.out.println("Drinks Menu");
     
                 System.out.println("--------------");
     
                System.out.println("(1)Milo + \t\t + RM5.00");
     
                  System.out.println("(2) Coffee + \t\t RM1.50");
     
                 System.out.println("(3) Tea+ \t\t RM3.50");
     
                  System.out.println("(4) Back to Order Menu");
     
                 System.out.println("Enter order:");
     
                 drinksorder=read.nextInt();
     
                switch (drinksorder) {
     
                  case 1:
                 System.out.println("Enter quantity:");
                 quantity=read.nextDouble();
                 subtotal=milo;
                 total=(subtotal * quantity);
                 sum=total;
                 output="milo" +1;  
                 break;
     
                 case 2:
                 System.out.println("Enter quantity");
                 quantity=read.nextDouble();
                 subtotal=coffee;
                 total=(subtotal * quantity);
                 sum=total;
                 output="coffee"+1;
                 break;       
     
                case 3:
                System.out.println("Enter quantity");
                quantity=read.nextDouble();
                subtotal=tea;
                total=(subtotal * quantity);
                sum=total;
                output="tea" +1;
                return;
     
                default:
                break;
                 }
     
              }else
                  if(ordermenu==2)
     
             {
                System.out.println("Food Menu");
     
                 System.out.println("--------------");
     
                System.out.println("(1)Burger + \t\t + RM5.00");
     
                System.out.println("(2) Pizza + \t\t RM1.50");
     
              System.out.println("(3) Nasilemak+ \t\t RM3.50");
     
            System.out.println("(4) Back to Order Menu");
     
               System.out.println("Enter order:");
     
               foodorder=read.nextInt();
     
                 while(foodorder!=4){
     
                       if (foodorder==1){
     
                         System.out.println("Enter quantity:");
     
                         quantity2=read.nextDouble();
     
                          subtotal2=burger;
     
                          total2=(subtotal2*quantity2);
     
                         sum2=total2;
     
                         output2="burger"+1;
     
                           break;
     
                    }else
     
                         if(foodorder2==2){
     
                          System.out.println("Enter quantity:");
     
                           quantity2=read.nextDouble();
     
                         subtotal2=pizza;
     
                         total2=(subtotal2*quantity2);
     
                         sum2=total2;
     
                        output2="pizza"+1;
     
                         break;
     
                  }else
     
                           if(foodorder==3){
     
                           System.out.println("Enter quantity:");
     
                           quantity2=read.nextDouble();
     
                            subtotal2=nasilemak;
     
                          total2=(subtotal2*quantity2);
     
                          sum2=total2;
     
                          output2="nasilemak"+1;
     
                               break;
     
                  }else 
     
                          if(foodorder==4){
     
                      System.out.println("Food Menu");
     
                     System.out.println("--------------");
     
                    System.out.println("(1)Burger + \t\t + RM5.00");
     
                   System.out.println("(2) Pizza + \t\t RM1.50");
     
                  System.out.println("(3) Nasilemak+ \t\t RM3.50");
     
                  System.out.println("(4) Back to Order Menu");
     
                   System.out.println("Enter order:");
     
                   order3=read.nextInt();
                   break;
     
                     }else
                          if(foodorder!=0 || foodorder>4){
                   System.out.println("please enter a valid choice!!!");
                   break;
                     }         
                   }  
     
                    }else
     
                           if(mainmenuchoice==3){
                           System.out.println("Goodbye!!!");
     
                        } else
     
                           if (mainmenuchoice==2)
     
           { 
                 System.out.println("Order \t\t Quantity\t\t Unit\t\t Price\t\t Total\t\t");
     
                 System.out.println("-----------------------------------------------");
     
                 System.out.println(drinksorder);
     
                System.out.println(quantity);
     
               System.out.println(subtotal);
     
               System.out.println(total);
     
                 System.out.println(foodorder);
     
                  System.out.println(quantity2);
     
                   System.out.println(subtotal2);
     
                   System.out.println(total2);
     
                 overalltotal=total + total2;
     
                 System.out.printf("Overall total is RM ",overalltotal);
     
                System.out.println(" Any Discount: ");
     
                  discount=read.nextDouble();
     
                discount2=discount/100;
     
               price=overalltotal-(discount2*overalltotal);
     
               System.out.println("Payment: ");
     
                double payment=read.nextDouble();
     
                double balance = payment-price;
     
                  System.out.println("Balance:" + balance);
     
               }
     
         }        
      }                         
    }
    Last edited by Newja; September 21st, 2017 at 08:42 PM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.

    What is the program's current output? Add some comments showing what needs to be changed.

    --- Update ---

    Also posted here: https://coderanch.com/t/684937/java/...ucture#3214673
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    Hi Newja,
    the problem you can't back to main menu because your main menu isn't in a loop state. that why it keep repeated on order menu....

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    output for this program that i want to achieve
    Can you post the program's current output so we can see what the problem is?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Sep 2017
    Posts
    5
    My Mood
    Stressed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    --------------------------------------------
    SJ Restaurant Ordering System
    --------------------------------------------
    Main Menu
    --------------
    (1) Place Order
    (2) Payment
    (3) Quit
    Enter your choice:1

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    1

    Drinks Menu
    --------------
    (1)Milo + + RM5.00
    (2) Coffee + RM1.50
    (3) Tea+ RM3.50
    (4) Back to Order Menu
    Enter order:
    1
    Enter quantity:
    2

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    2

    Food Menu
    --------------
    (1)Burger + + RM5.00
    (2) Pizza + RM1.50
    (3) Nasilemak+ RM3.50
    (4) Back to Order Menu
    Enter order:
    1
    Enter quantity:
    3

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    3

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:

    The problem as it can be seen here when the user press '3' it should return to the main menu but it does not

    --- Update ---

    I will be really grateful if you can tell me what and where the loop control structure i can put in my code so that he main menu can reappear after my user enter the number "3" from the order menu to return from the main menu as i have try everything in the last 6 days and still i have not achieved my desired output.I have try to put a do while loop before the print statement of the SJ restaurant ordering system , but it does not work as it causes an error that the variable choice2 has not been initialize but the problem with that is i did not initialize the variable choice 2 should not be as I want the user to be able to enter their selection in the choice2 variable.
    Last edited by Newja; September 21st, 2017 at 07:08 PM.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    Is this the logic for your program:
    main menu loop
    show main menu
    get option
    option loop
    ... process option - exit option loop on user request
    end option loop
    end main menu loop


    One problem I see in the code is improper formatting and indentations that make it hard to read and understand the logic.
    Another problem is variable names. Variable names should describe what the variable contains.
    The names choice and choice2 don't say what they are a choice of. One is for the main menu, the other is for??? I see 4 menus where choices can be made. For example foodMenuChoice would contain the user's choice from the Food Menu
    If you don't understand my answer, don't ignore it, ask a question.

  7. The Following User Says Thank You to Norm For This Useful Post:

    Newja (September 21st, 2017)

  8. #7
    Junior Member
    Join Date
    Sep 2017
    Posts
    5
    My Mood
    Stressed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    Yes that is the logic of my program
    main menu loop
    show main menu
    get option
    option loop
    ... process option - exit option loop on user request
    end option loop
    end main menu loop

    I appreciate the feedback of the improper formatting and indentations , as well as the variable names . choice2 is meant for the choices on the order menu for the user to decide whether they want to go to the food menu , drinks menu or go back to the main menu. I want to learnt and i will change it but the main concern right now for me is how do i allow my user to exit the order menu to the main menu after they enter the choice '3' from the order menu. I have spend 6 days on this cracking my head, hence i would greatly appreciate if anyone can just fixed my code or give me suggestion on how i can achieved the desired output.

  9. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    how do i allow my user to exit the order menu to the main menu
    That is very hard to say with the way the program is currently coded.
    The code needs to be changed as I suggested so the program's current logic can be understand.
    Proper formatting and variable names will make the code easier to understand.

    For example finding where the variable that controls the Order menu loop is used so the end of the Order Menu logic can be seen.
    The variables: choice, choice2, order1, etc carry no meaning when they are read.

    suggestion on how i can achieved the desired output.
    Fix the formatting and variable names so the logic can be read and understood.

    A suggestion: Remove all the menus except for the Main and Order menu. Get that code to work
    and then add in the Food Menu, get that to work,
    then add in the Drink menu, etc
    If you don't understand my answer, don't ignore it, ask a question.

  10. #9
    Junior Member
    Join Date
    Sep 2017
    Posts
    5
    My Mood
    Stressed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    I have make the changes i hope the program is more more easily to read now. I kinda figured out what is wrong with my program but i just don;t know how to solve it the problem.The problem as it can be seen here when the user press '3' it should return to the main menu but it does not.
    I know i need to put a control structure loop before the main menu in the code, i try everything but the problem is that whenever i do that i got an error that the variable mainmenuchoice has to be initialized but i don;t want it to be initialized as it supposed to be enter by the user.So that why i am stuck i am grateful if anyone can direct me on how to overcome this.

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:
    3

    Order Menu
    ------------
    (1) Drinks
    (2) Food
    (3) Back to Main Menu)
    Enter your choice:

  11. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    variable mainmenuchoice has to be initialized
    Give it a value outside of the loop when it is defined. Inside the loop the user's response will change its value.

    Note: The code's formatting and indentation needs work to make the code readable. The statements need to be properly indented to show the program's logic.
    The extra blank lines between the statements need to be removed.
    If you don't understand my answer, don't ignore it, ask a question.

  12. #11
    Junior Member
    Join Date
    Sep 2017
    Posts
    5
    My Mood
    Stressed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    I am re-hauling my entire code again but can i ask just one question what is the meaning of the error orphaned case? While i was re-hauling my entire code, i came across this error in my code, i try everything but it does not want to go away can you please take a quick glance at it and tell me how can i fix it , i even comment on the line of the code where the error is reported, as i really want to learn what wrong with it because i really don;t know what is wrong??
    package assignment1;
    import java.util.Scanner;
    /**
     *
     * @author chee
     */
    public class Assignment1Question3 {
        public static void main(String[] args) 
        {
          Scanner read = new Scanner(System.in); 
     
         int mainmenuchoice;
         int ordermenuchoice;
         double drinkquantity;
         double foodquantity;
         int drinkorder;
         int foodorder;
         double drinksubtotal;
         double foodsubtotal;
         double milo=5.50;
         double coffee=1.50;
         double tea=3.50;
         double burger=5.00;
         double pizza=1.50;
         double nasilemak=3.50;
         double discount;
         double price;
         double discount2;
         double totalfinal;
         String output;
         String output2;
         double overalltotal;
         double total;
         double sum;
         double sum2;
         double total2;
     
         do{
              System.out.println("--------------------------------------------");
              System.out.println("SJ Restaurant Ordering System");
              System.out.println("--------------------------------------------");
              System.out.println("Main Menu");
              System.out.println("--------------");
              System.out.println("(1) Place Order");
              System.out.println("(2) Payment");
              System.out.println("(3) Quit");
              System.out.print("Enter your choice:");    
              mainmenuchoice=read.nextInt();
               switch(mainmenuchoice){
                   case 1:
                       do{
                        System.out.println("Order Menu");
                        System.out.println("------------");
                        System.out.println("(1) Drinks");
                        System.out.println("(2) Food");
                        System.out.println("(3) Back to Main Menu)");
                        System.out.println("Enter your choice:");
                        ordermenuchoice=read.nextInt();
                        switch(ordermenuchoice)
                        {
                          case 1:
                         do{
                          System.out.println("Drinks Menu");
                          System.out.println("--------------");
                          System.out.println("(1)Milo + \t\t  RM5.00");
                          System.out.println("(2) Coffee + \t\t RM1.50");
                          System.out.println("(3) Tea+ \t\t RM3.50");
                          System.out.println("(4) Back to Order Menu");
                          System.out.println("Enter order:");
                          drinkorder=read.nextInt();
                          switch(drinkorder)
                          {  
                              case 1 :
                                   System.out.println("Enter quantity:");
                                   drinkquantity=read.nextDouble();
                                   drinksubtotal=milo;
                                   total=(drinksubtotal *drinkquantity);
                                    sum=total;
                                    output="milo" +1; 
                                    break;
     
                             case 2 :
                                     System.out.println("Enter quantity");
                                     drinkquantity=read.nextDouble();
                                     drinksubtotal=coffee;
                                    total=(drinksubtotal * drinkquantity);
                                    sum=total;
                                    output="coffee"+1;
                                     break;       
     
                              case 3:
                                    System.out.println("Enter quantity");
                                    drinkquantity=read.nextDouble();
                                    drinksubtotal=tea;
                                     total=(drinksubtotal * drinkquantity);
                                     sum=total;
                                     output="tea" +1;
                                    break;
     
                              case 4: 
                                     break;
     
                             default:
                                    System.out.println("Please enter a valid choice");
                                    break;
                               }
     
                         }while(drinkorder!=4);
                                 break;
     
                         case 2:
                         do{
                          System.out.println("Food Menu");
                          System.out.println("--------------");
                          System.out.println("(1)Burger + \t\t + RM5.00");
                          System.out.println("(2) Pizza + \t\t RM1.50");
                          System.out.println("(3) Nasilemak+ \t\t RM3.50");
                          System.out.println("(4) Back to Order Menu");
                          System.out.println("Enter order:");
                          foodorder=read.nextInt();
                          switch(foodorder)
                          {
                              case 1: 
                             System.out.println("Enter quantity:");
                             foodquantity=read.nextDouble();
                             foodsubtotal=burger;
                             total2=(foodsubtotal*foodquantity);
                             sum2=total2;
                             output2="burger"+1;
                             break;
     
                             case 2:
                             System.out.println("Enter quantity:");
                             foodquantity=read.nextDouble();
                             foodsubtotal=pizza;
                             total2=(foodsubtotal*foodquantity);
                             sum2=total2;
                             output2="pizza"+1;
                             break;
     
                             case 3:
                             System.out.println("Enter quantity:");
                             foodquantity=read.nextDouble();
                             foodsubtotal=nasilemak;
                             total2=(foodsubtotal*foodquantity);
                             sum2=total2;
                             output2="nasilemak"+1;
                             break;
     
                             case 4:
                              break;
     
                             default:
                             System.out.println("please enter a valid choice!!!");
                             break;
                              }
                        break;
                       }while(foodorder!=4);
                        break;
     
                         case 3: 
                          break;
     
                        }while(ordermenuchoice!=3)
                        break;
     
                   case 2: //My error show up at this line orphaned case. What does it meant and how do i correct it???      
                    System.out.println("Order \t\t Quantity\t\t Unit\t\t Price\t\t Total\t\t");
                     System.out.println("-----------------------------------------------");
                     System.out.println(drinkorder);
                     System.out.println(drinkquantity);
                     System.out.println(subtotal);
                     System.out.println(total);
     
                     System.out.println(foodorder);
                     System.out.println(foodquantity);
                     System.out.println(subtotal2);
                     System.out.println(total2);
     
                     overalltotal=total + total2;
                     System.out.printf("Overall total is RM ",overalltotal);
                     System.out.println(" Any Discount: ");
                     discount=read.nextDouble();
                     discount2=discount/100;
                     price=overalltotal-(discount2*overalltotal);
                     System.out.println("Payment: ");
                     double payment=read.nextDouble();
                     double balance = payment-price;
                     System.out.println("Balance:" + balance);

  13. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help For Assignment (Problem with Loop Control Structure)

    meaning of the error orphaned case?
    I imagine it means the case is not in a switch.

    Note: The code has improved, but the indentations are not deep enough(often only 1 space instead of at least 3) to see the logic clearly.
    For example:
                      switch(ordermenuchoice)
                        {
                          case 1:
                         do{
    It should be:
                      switch(ordermenuchoice)
                       {
                           case 1:
                              do{

    Another technique that will help you organize the code and find problems is to add comments on the ends of do{}while statements and the switch statements to make it easier to pair the end with the beginning of the statement.
       do{  // start processing food menu
        ...
       }while(...); // end processing food menu
     
    ...
      switch(someVar) 
      {
    ...
       } // end switch(someVar)
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Loop Structure
    By jasonkwp in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 23rd, 2017, 11:06 AM
  2. repetition control structure
    By trussell0371 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 28th, 2013, 09:37 AM
  3. nested loop structure
    By captianjaax in forum What's Wrong With My Code?
    Replies: 8
    Last Post: September 21st, 2011, 04:00 PM
  4. data structure assignment .. help me : |
    By Noni in forum Object Oriented Programming
    Replies: 4
    Last Post: March 21st, 2011, 10:33 AM
  5. [SOLVED] Problems with Loop Structure
    By Sean137 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 13th, 2010, 02:59 PM

Tags for this Thread