Use if statements (including if / else, if / else if, etc.) to improve your family restaurant menu. This assignment is all about nested if statements.
For each dish on your menu, instead of directly asking how many the user wants and accepting any value, make the script look like this:
1.Ask the user: "Would you like [DISH NAME]?" (for example, "Would you like a bowl of chicken soup?" or "Would you like some tortilla chips?")
2.Read in a single character from the keyboard.
3.Ask the user "How many [DISH NAME] would you like?" and read in the answer, just like you did on the first family restaurant assignment.
Additional requirements:
Display the menu.
Ask the customer what they would like to order.
Input their answer (text, the name of one dish), which might be more than one word. Compare their answer to the names of your dishes. (Do NOT input a number for this question!)
If you do not understand the customer's response, go to step 2.
If the customer has not already ordered this dish, ask the customer how many they would like.
If the customer has already ordered this dish, let them know how many they have already ordered and ask how many more they would like. Update the number of this dish in the order.
Display the customer's order as it currently stands.
Ask the user if they would like to order anything else.
If the user says yes, return to step 1.
If the user says no, ask the user to enter an amount for the tip.
If you do not understand the user's response, go to step 6.
Display the customer's receipt.