Question: (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

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!