The owner of Quick Breakfast Cafe (qbc), has provided a text file (see given qbc_menu_prices.txt) that contains menu items, separated by a space, the delimiter.Each record in the file contains the...

The owner of Quick Breakfast Cafe (qbc), has provided a text file (see given qbc_menu_prices.txt) that contains menu items, separated by a space, the delimiter.Each record in the file contains the following two fields: Item Description and the Sale Price.Read the file and present the user with a Quick Breakfast Cafe Menu, which may look like this:Quick Breakfast Cafe --Menu--
[1] Coffee $2.20
[2] Tea $1.05
[3] Milk $1.5
[4] Donuts $2.85
[5] Bagel $3.25
[6] LogoutPrompt the user for the item and quantity they wish to purchase, which may look like:Enter your selection [1 - 6]: 1
Enter the quantity you wish to purchase: 1To simplify the program, a user can only purchase one item at a time. A receipt is printed after each transaction, which includes the item, qty and price, followed by the total price including an 8% tax. The receipt may look like:Quick Breakfast Cafe

-- Sales Receipt --


Item Qty Cost
Coffee 1 $ 2.20
Total Cost With %8 Sales Tax: 2.38


After each transaction, the program returns to the Menu, ready for the next transaction. Each transaction is also logged in a file (call it qbc_sales_log.txt). Each record in the log file should include four fields: item, quantity, price and tax, separated by spaces. For example, the record in the log file may look:


Coffee 1 2.20 0.18


Close the file after the Logout option is selected.


Your program will be graded on substance and style. Make your code modular. Please include validation and comments in your code.

May 06, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here