Question: using c code in visual studio: I have tried a few ways and just messed up the code I already have. I am lost and
using c code in visual studio:
I have tried a few ways and just messed up the code I already have. I am lost and am struggling to not only nest the do while loops into the for loops. A template or layout would be helpful or maybe some examples. This is the first time I have struggled in this class.
Assignment:
You will be adding several loops and some more variables to your code as well as changing some existing code to work differently.
Additions
Add a welcome statement and ask the user for the number in the party Pretend you are the greeter at a restaurant
Create a for loop using the number in the party as the test condition of your loop
Inside the for loop you should go around the table" and take the order from each customer:
Display customer "seat # at table" this will use your loop counterDisplay Restaurant Menu lineDisplay original choices for your drinks, appetizers, entrees, and desserts you already have this codeAccumulate the subTotal
Create dowhile loops to allow each person at the table" to have the option to choose multiple items from each category
For each of the categories you will need to:
Add another print statement to have one more choice Example there are drink choices, so choice will be something like "Done with Drinks" or "Move on to Appetizers"Because customers can have more than one of an item, you will need to accumulate the prices in each category in the case statementUser will remain in the category until they choose the last choice in our example Once they choose to move on the next category menu will be displayedRepeat for all categoriesMake sure you accumulate your subTotal
Clear the screen once all customers' orders are done
Changes
Discount will be random now, so
Display some type of message that the restaurant is offering a discount to its customers
The customers should "spin the wheel" to get their discount percentageThe discount percentage should be a random value between and inclusiveDisplay a message telling the customer what their discount percentage will be rounded to decimals
Set the discount amount by multiplying the random discount by the subtotal
I tried to add pictures of the code I have but it wouldnt let me a template andor example would be very helpful. I have already used the expert help once on this and they sent me code that doesnt translate at all. This is for a C program on visual studio if that helps. Thank you in advance
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
