Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#This program will allow the user to order and customize their hotdogs. #The user have their choice of various toppings. These include: sauerkraut, #coleslaw, onions,

#This program will allow the user to order and customize their hotdogs. #The user 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 #hotdogs they wish to order. It will then ask for the toppings. The topping #prices are: #saurkraut = $1.75 #onions $0.50 #cheese = $1.00 #relish = $0.50 #The program needs to output the price of one hotdog and the total price of all #hotdogs on the order. The cost for one hotdog is $3.50.

(PYTHON) Write a code for this output

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