Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program for a fast food restaurant cash register that lets a customer order a meal. At each step print out a question for

image text in transcribed

image text in transcribed

Write a program for a fast food restaurant cash register that lets a customer order a meal. At each step print out a question for the user and use an input() statement to get their answer. 1. Ask for their choice of sandwich print: Please select a Burger [1,2,3]: #this means the user will enter the number 1, or 2, or 3 and then press enter. [have the user will select 1 for] McStandard (1 patty) cost is $3.45 [select 2 for] McGordo (2 patties) cost is $5.24 (or select 3 for] McChonk (3 patties) cost is $6.95 2. Ask the user if they would like cheese on their sandwich print: Add cheese to the burger? [Y/N]: #this means the user will enter the letter Yor N and then press enter. and then get input from user for cheese add $1.23 to the cost 3. Ask the user if they would like the upgraded meal package print: Would you like a Combo? [Y/N] If the users answer is yes: print: What size? [S,M,L] # If the answer to 'Combo' was no, skip this question I get input from user Calculate the cost for the combo based on these added costs. . for a Medium combo add $2.76 for a Large combo add $3.89 4. Calculate the total cost of the meal and with tax. Start with the cost of the chosen sandwich Add the cost of cheese, or not Add the cost of which upgrade was selected (none, Medium, Large) Calculate tax at 9.5% tax rate. 5. Print out a nice looking receipt. Welcome to McTofuButterBurger 5. Print out a nice looking receipt. Welcome to McTofuButterBurger Menu: 1 McStandard (1 patty) 2 - McGordo (2 pattys) 3 - McChonk (3 pattys) Please select a Burger [1,2,3] 2 Add cheese to the burger? [Y/N] Y Would you like a Combo? [Y/N] Y What size? [ML] L Your Order: McGordo burger with cheese Large combo $5.24 $1.23 $3.89 sub total tax $10.45 $ 0.84 total due $11.29 thank you

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago

Question

Explain the various techniques of Management Development.

Answered: 1 week ago