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 fast-food 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 non-negative 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 $5.50, fries $3.50, coke $2.00. Apply a 3% 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!