Question
Python script to calculate the cost of a single pizza order, where the order may contain one or more pizzas. Ask the user the size
Python script to calculate the cost of a single pizza order, where the order may contain one or more pizzas.
Ask the user the size of the pizza they want - small pizzas cost $10, medium pizzas cost $12 and large pizzas cost $14.
Ask the user how many toppings they want (valid answers are between 1 and 6) - the first three toppings are free, any toppings above that cost an additional dollar per topping.
Once you have those details, ask the user if they'd like to add another pizza to the order - if so you go again from asking the size.
Once the user says they don't want to add any more pizzas to the order then display the total amount due.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started