Question: A restaurant called Tonys Pizza Palace needs a program to help calculate rhe number of slices a pizza of any aize can be divided into,
A restaurant called Tony’s Pizza Palace needs a program to help calculate rhe number of slices a pizza of any aize can be divided into, and hoe many pizzas should be ordered for a party. The program will assume each person at the party will eat 3 slices of pizza each.
The program should prompt the user for the diameter of the pizzas they wish to order. it will also ask the user for the number of people who will be at the party. The program will then calculate and display the number of slices per pizza and the number of pieces needed for the party (must be full pizzas).
- A slice must have an area of 14.125 inches
- Number of slices per pizza is the area of the pizza divided by the area of a slice
- Area of a piece is calculated with Area = Pl*r^2
•Pl = 3.14159
• r is the radius of the pizza
- The number of slices should be a fixed point and rounded to one decimal place
- Pl must be a named constant
include psuedocode
C++ language
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
