Home / Questions / Write a C# program to help a local restaurant automate its breakfast billing system. The p...

Write a C# program to help a local restaurant automate its breakfast billing system. The program sho

Write a C# program to help a local restaurant automate its breakfast billing system. The program should do the following:

• Show the customer the different breakfast items offered by the restaurant. This information is stored in a data file. The number of items in the data files willchange with a different data file so watch what you hard code in.
• Allow the customer to select more than one item from the menu
• Calculate and display the bill to the screen
• The customer should be allowed to order more than one quantity of a given item like 2 muffins rather than just one.

Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item):

Plain Egg $1.45
Bacon and Egg $2.45
Muffin $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea $0.75

You use parallel arrays, itemType of type string and price of type double. Values for itemType and price will be read in from a data file. Each line of the data filewill contain a description for the item and the price separated by a comma. The number of items for each item will be entered by the user and the cost for that numberof items will be calculated. Your program must contain the following static methods:
• GetData: This method loads the data into the parallel arrays and returns how many items are in each array.
• Method ShowMenu: This method shows the different items offered by the restaurant and tells the user how to select items. It selects the item number, prompts for thenumber needed of that item, and stores the cost of this many of a given item in an array cost of type double.
• Method PrintCheck: This method calculates and displays the check to the screen. (Note that the billing amount should include a 5% tax.)

Sample output for a given bill:

Thanks for visiting Johnny’s Restaurant
1 Bacon and Egg $2.45
2 Muffins $1.98
1 Coffee $0.50
Tax $0.25
Amount Due $5.18

The program should give the user the opportunity to calculate more than one bill from the same restaurant. This means that the user needs to have the ability to enterthe name of the file that contains the informati

 

Apr 17 2020 Read more Less More

Answer (Solved)

question Subscribe To Get Solution

Recent Questions

Chat Now

Welcome to Live Chat

Welcome to MyCourseHelp Services, World's leading Academic solutions provider with Millions of Happy Students.

Please fill in the form