Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started