Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions