Question: I need help with this C++ programming lab. Thank you. QUESTION 1 Bronx Pizza needs a program to calculate the number of slices a pizza
I need help with this C++ programming lab. Thank you.

QUESTION 1 Bronx Pizza needs a program to calculate the number of slices a pizza of any size can be divided into. They also need the program to recommend the number of pizzas needed to feed a given number of pcople at a gathcring. The program A) Ask the uscr for the diameter of the pizza(s) to be ordered. B) Ask the user how many people will attend. C) Ask the user how many slices the average person will eat. D) Calculate the number of slices that may be taken from a pizza of that size. Each slice should have a minimum area of 16.225 square inches E) Calculate how many pizzas need to be ordered. F) Display a message telling the number of slices per pizza, and how many pizzas are needed. Use a named constant for pi (PI). All input and output is whole numbers only To calculate this correctly, you need to know more about rounding in C++ round) will do an arithmetic round; round(2.4) is 2, and round(2.5) is3 floor() rounds down: floor(2.9) is 2 ceil) rounds up: ceil(2.1) is 3 Make your output look like this Enter pizza diameter (inches) 16 Enter number of people: l3 Enter average number slices per person: 3 Each 16 inch pizza yields 12 slices. You should order 4 pizzas for 13 people. should perform the following steps Enter pizza diameter (inches) 12 Enter number of people: 8 Enter average number slices per person: 2 Each 12 inch pizza yields 6 slices. You should order 3 pizzas for 8 people
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
