Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(PYTHON) You have been asked to create a program that will allow the user to order and customize their hot dogs. The user will have

(PYTHON)

You have been asked to create a program that will allow the user to order and customize their hot dogs. The user will have their choice of various toppings. These include: sauerkraut, coleslaw, onions, cheese and relish. The user will be able to add as many toppings as they wish. The application will ask the user for the number of hot dogs they wish to order and then the the toppings. The cost for one hot dog is $3.50. The topping prices are:

saurkraut = $1.75 onions $0.50 cheese = $1.00 relish = $0.50

The program needs to output the total price for the toppings, the total price for the hot dogs and the grand total for the order.

When running correctly the output will look like the following:

Enter the number of hot dogs you want: 2 Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: O Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: C Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: R Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: Q Total Topping Cost: $ 4.0 Total Hot Dog Cost: $ 7.0 Total Order: $ 11.0 `````````````````````````````````````````` Enter the number of hot dogs you want: 3 Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: S Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: Q Total Topping Cost: $ 5.25 Total Hot Dog Cost: $ 10.5 Total Order: $ 15.75 Enter the number of hot dogs you want: 1 Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: R Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: O Enter your topping choice 'S', 'O', 'C', 'R' or 'Q' to quit: Q Total Topping Cost: $ 1.0 Total Hot Dog Cost: $ 3.5 Total Order: $ 4.5 

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

More Books

Students also viewed these Databases questions