Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Asking user for required info pizzaCount = int(input (How many people ordered pizza: )) salad int (input (How many people ordered salad: )) #Finding

 

Asking user for required info pizzaCount = int(input ("How many people ordered pizza: ")) salad int (input ("How many people ordered salad: ")) #Finding base cost of pizza pizza = pizzaCount * 3 if(pizza % 12 != 0): pizza = pizza / 12 pizza = math.ceil(pizza) pizza = pizza / 12 else: basePizzaCost = pizza * 15.99

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

Cost Management Accounting And Control

Authors: Don R. Hansen, Maryanne M. Mowen, Liming Guan

6th Edition

324559674, 978-0324559675

More Books

Students also viewed these Algorithms questions

Question

2. Are they aware of the assumptions they are making?

Answered: 1 week ago