My code was working fine before placing an IF statement within a WHILE statement (see line 31). You should be able to enter "Q" when all orders are entered and it stops data entry. It then needs to count and display the number of each combo ordered and calculate and display the total group bill. Any help would be appreciated.
I think this is what you were trying to do. There are other problems though. Inputting 't' doesn't give total and 'numcombo' doesn't keep count of how many orders of each combo, it keeps count how many times the program has looped.
Add another switch case for 't' and I think each combo will need its own counter variable.
Thanks all! Everything seems to working as it should EXCEPT the "numCombo" counts (lines 34-36). I'm also not sure about "Q" either. It does stop the data entry but it also calculates the total which shouldn't be the case. Any suggestions would be appreciated.
Your 3 lines (34-36) are all executing every time you go through the while loop. You want to add them to the part of the loop that is only executed based on the input answer.