Question: Open VS Code or IDLE and write program to solve the problem listed below. Create a small program in Python that will allow the user
Open VS Code or IDLE and write program to solve the problem listed below.
Create a small program in Python that will allow the user to order the burger of their choosing. The program needs to ask the user for the type of burger they wish to order. Single burgers are $5.50. Deluxe burgers, which come with lettuce, tomato, onion, pickles and mayo, are $8.00. The Extreme, which comes with everything the Deluxe has to offer plus bacon. This burger costs $10.00. The program also needs to ask if the user wants cheese on their burger. If they respond with 'yes', there is an additional cost of $2 that needs to be added to the cost of one burger. In addition to the type of burger, the program also needs to ask for how many burgers of that particular type the customer wishes to purchase. The program needs to keep asking the user for their burger choice and quantity until they enter the word quit. Finally the program needs to print out the subtotal for each type of burger and the total cost. Make sure your program contains properly worded input and output prompts so that the user knows what to input as well as how to read the outputs.
Do not forget to include your decomposition and listing of inputs and outputs for this problem. Additionally answer the following questions:
- What condition needs to exist in order for your loop to end?
Please note you need to solve this program using loops and IF structures. A failure to do so will result in a severe deduction of points.
Once you have written, tested and debugged your Python program, attach the .py file to this question.
The following rubric will be used to grade your program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
