Question: Coding ExercisesImplement an ordering system for a fast - food restaurant. Write a function to display a menu to the user ( burgers , fries,
Coding ExercisesImplement an ordering system for a fastfood restaurant. Write a function to display a menu to the user burgers fries, coke, and checkout Write a function to obtain the quantity of an item to order. The function should accept the name of the item burgers "fries", "coke" as a parameter and return the quantity ordered. The function should get the quantity as input from the user and validate that it's a nonnegative integer. Write a function to display a receipt. The function should accept the total cost as a parameter. Write a main function that repeatedly displays the menu to the user and allows them to order items. Upon checkout, calculates the totals and displays a receipt. Prices: burger $ fries $ coke $ Apply a tax to the cost of all the items.
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
