Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

How fast is world population growing?

Answered: 1 week ago