Question: In PYTHON First Ask the user for a type of sandwich (chicken $5.25, beef $6.25, and tofu $5.75) Next ask the user if they would

In PYTHON
First Ask the user for a type of sandwich (chicken $5.25, beef $6.25, and tofu $5.75)
Next ask the user if they would like a beverage (yes, no)
if they say say yes ask what size beverage they would like
small: $1.00
medium: $1.75
large: $2.25
Then ask the user wether they would like french fries (yes, no)
if they say yes, ask what size french fries they would like
small $1.00
medium $1.50
large $2.00
if they say small ask the user whether they'd like to Mega-Size their fries (yes, no)
if the user inputs yes to Mega-Size, give them large fries at the large fries price ($2.00) instead of their small fries
lastly ask the user how many ketchup packets they would like (enter a positive interger; cost is $0.25 per packet)
after ordering the sandwich, drink, fries, and ketchup packets:
if the user selected a sandwich, french fries, and a beverage, reduce the total cost of the order by $1.00
the program informs the user of their menu selections for only the items they ordered
the program should print the total cost of the order remove any other totals before this point

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!