Write a Python program in a .py file that includes the following: Program reads, formats and prints a restaurant menu from menu.txt (see at the bottom). Customer orders menu items by name or an assigned item number until a key word is entered such as "I'm Done" or "Exit". Customer order and net total is printed as output to a new text file. ----------------- menu.txt ----------------- Ham and Egg Sandwich $15.75 Bacon and Cheese Plate $9.50 Tuna Salad $12.30 Beef Soup $9.00 Spicy Beef Barbeque $20.00 Pork Barbeque $18.00 Oven Chicken Barbeque $15.00 Pulled Beef Barbeque Burger $25.00 House Salad $5.00 Pellegrino $5.40 White Wine $7.50 Red Wine $11.00

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a Python program in a .py file that includes the following:

Program reads, formats and prints a restaurant menu from menu.txt (see at the bottom).
Customer orders menu items by name or an assigned item number until a key word is entered such as "I'm Done" or "Exit".
Customer order and net total is printed as output to a new text file.

-----------------
menu.txt
-----------------
Ham and Egg Sandwich $15.75
Bacon and Cheese Plate $9.50
Tuna Salad $12.30
Beef Soup $9.00
Spicy Beef Barbeque $20.00
Pork Barbeque $18.00
Oven Chicken Barbeque $15.00
Pulled Beef Barbeque Burger $25.00
House Salad $5.00
Pellegrino $5.40
White Wine $7.50
Red Wine $11.00

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education