Question: Question 1 [ 2 0 marks ] You are tasked with creating a simple menu - driven program for a fast - food restaurant. The

Question 1[20 marks] You are tasked with creating a simple menu-driven program for a fast-food restaurant. The program should allow the user to order food items by selecting options from a menu using a switch statement. The user can continue ordering items until they decide to exit the program. Requirements: Display a menu with the following options: 1. Burger - R5.992. Pizza - R7.993. Fries - R2.494. Soda - R1.495. Exit Required: a. Implement a recursive function that repeatedly displays the menu, takes the user's order, and calculates the total cost until they choose to exit. b. Use a switch statement within the recursive function to process the user's choice: For options 1-4, display a message indicating the item ordered and its price. For opt

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!