Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You've been hired by Debug's Pizzeria to create a Pizza Party Planner ( PPP ) to host on their website. The PPP helps pizza party

You've been hired by Debug's Pizzeria to create a Pizza Party Planner(PPP) to host on their website.
The PPP helps pizza party hosts determine how many pizzas to order, and also helps Debug's employees know how much of each ingredient is required to fulfill the order(we'll just focus on the sauce for now).
The PPP will prompt a user to enter the number of people attending the pizza party, and their hunger level(1-3), then output the number of needed pizzas as well as the amount of sauce required.
For the calculation, assume that people eat 2 slices on average and each pizza has 12 slices.
To calculate the amount of sauce, use the area of a circle equation(\pi r^2) and assume that the radius of each pizza is 5 inches multiplied by the hunger-level (the average number of slices eaten remains the same). Round the amount of sauce to the nearest tenth (use the built-in round() function).
Hint: Use the ceil() function from the math module to round up the number of pizzas so that enough pizzas are ordered. You can also use pi as well.
Ex: If the input is:

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

Question

@ What benefits did we derive from supporting the Olympics?

Answered: 1 week ago

Question

2. Develop a persuasive topic and thesis

Answered: 1 week ago

Question

1. Define the goals of persuasive speaking

Answered: 1 week ago