Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

h. Submit both the well-commented code you wrote, the files you produced, and the test result you got. CIST 2742 - Python Programming Lab #8

image text in transcribed

h. Submit both the well-commented code you wrote, the files you produced, and the test result you got. CIST 2742 - Python Programming Lab #8 (40 Points) Food Ordering Application Extra credit: Create a GUI application (20 bonus points) STEAK All steaks are broiled to your satisfaction Create an Object-Oriented food ordering application (e.g. create an Order Class and other classes you need) for Copeland's Restaurant that can be used to receive an order from a customer and to prepare a receipt. The customer can order a steak from the menu shown below and may or may not add a topping to the order. Each table will have a unique id so that the personnel in the kitchen will know where the order came from. AL'S FAVORITE FILET $35.99 CLASSIC FILET $33.99 8 OZ. CENTER CUT, CERTIFIED ANGUS BEEF TOPPED WITH CARAMELIZED ONIONS AND SIZZLING STEAK BUTTER, ONE SIDE SINCE 1983. 8 OZ. TENDER CENTER CUT CERTIFIED ANGUS BEEF FILET SERVED SIZZLING, ONE SIDE PRIME TOP SIRLOIN $26.99 STEAK FRITES $27.99 a. The program should prepare a bill based on the items the customer(s) ordered from the menu, apply a 15% tip to the total, and calculate tax at 7%. Assume the customer paid in cash and the program should also calculate the correct change to give the customer. 10 OZ. USDA PRIME TOP SIRLOIN SERVED SIZZLING, ONE SIDE PRIME TOP SIRLOIN, BROILED AND SLICED, BRANDY MUSHROOM GRAVY SERVED WITH GARLIC PARMESAN FRIES STEAK LABOUCHERE $22.99 b. Each invoice will have a unique ID, a date and timestamp, the name of the waiter who received the order, and transaction details which will be stored in a text file. SEARED USDA PRIME SIRLOIN STEAK, ANGEL HAIR PASTA, GARLIC BUTTER, LABOUCHERE SAUCE c. The program should be able to search the file by invoice id or by date. Display only the record retrieved or display a message that no record matching the criteria is found if that is the case. The decision the program makes must be correct. SPECIALTY TOPPINGS GARLIC $2.00 BLEU CHEESE $2.00 d. Test the program using at least 5 meal orders from different tables. Invoice ID will be made of terminal id (e.g. 01), today's date (use date function) and the time the transaction took place (use date function). REN MUSHROOMS $2.00 CARAMELIZED ONIONS $2.00 e. Add validation logic for each input field. Put the code in a try catch block. Research the exception each input field can potentially throw, e.g value error. None of the fields should be spaces. Numeric fields should accept only numeric data. GARLIC SAUTED CRABMEAT $5.99 GARLIC SAUTED CRAWFISH $4.99 f. Use appropriate column headings when displaying the invoice data. Make sure the column headings line-up nicely; g. Perform both positive and negative tests. h. Submit both the well-commented code you wrote, the files you produced, and the test result you got. CIST 2742 - Python Programming Lab #8 (40 Points) Food Ordering Application Extra credit: Create a GUI application (20 bonus points) STEAK All steaks are broiled to your satisfaction Create an Object-Oriented food ordering application (e.g. create an Order Class and other classes you need) for Copeland's Restaurant that can be used to receive an order from a customer and to prepare a receipt. The customer can order a steak from the menu shown below and may or may not add a topping to the order. Each table will have a unique id so that the personnel in the kitchen will know where the order came from. AL'S FAVORITE FILET $35.99 CLASSIC FILET $33.99 8 OZ. CENTER CUT, CERTIFIED ANGUS BEEF TOPPED WITH CARAMELIZED ONIONS AND SIZZLING STEAK BUTTER, ONE SIDE SINCE 1983. 8 OZ. TENDER CENTER CUT CERTIFIED ANGUS BEEF FILET SERVED SIZZLING, ONE SIDE PRIME TOP SIRLOIN $26.99 STEAK FRITES $27.99 a. The program should prepare a bill based on the items the customer(s) ordered from the menu, apply a 15% tip to the total, and calculate tax at 7%. Assume the customer paid in cash and the program should also calculate the correct change to give the customer. 10 OZ. USDA PRIME TOP SIRLOIN SERVED SIZZLING, ONE SIDE PRIME TOP SIRLOIN, BROILED AND SLICED, BRANDY MUSHROOM GRAVY SERVED WITH GARLIC PARMESAN FRIES STEAK LABOUCHERE $22.99 b. Each invoice will have a unique ID, a date and timestamp, the name of the waiter who received the order, and transaction details which will be stored in a text file. SEARED USDA PRIME SIRLOIN STEAK, ANGEL HAIR PASTA, GARLIC BUTTER, LABOUCHERE SAUCE c. The program should be able to search the file by invoice id or by date. Display only the record retrieved or display a message that no record matching the criteria is found if that is the case. The decision the program makes must be correct. SPECIALTY TOPPINGS GARLIC $2.00 BLEU CHEESE $2.00 d. Test the program using at least 5 meal orders from different tables. Invoice ID will be made of terminal id (e.g. 01), today's date (use date function) and the time the transaction took place (use date function). REN MUSHROOMS $2.00 CARAMELIZED ONIONS $2.00 e. Add validation logic for each input field. Put the code in a try catch block. Research the exception each input field can potentially throw, e.g value error. None of the fields should be spaces. Numeric fields should accept only numeric data. GARLIC SAUTED CRABMEAT $5.99 GARLIC SAUTED CRAWFISH $4.99 f. Use appropriate column headings when displaying the invoice data. Make sure the column headings line-up nicely; g. Perform both positive and negative tests

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing And Assurance Services

Authors: Alvin A. Arens . Randal J. Elder . Mark S. Beasley

18th Global Edition

1292448989, 978-1292448985

More Books

Students also viewed these Accounting questions