Answered step by step
Verified Expert Solution
Link Copied!

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

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

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions

Question

Questions E3-1A and E3-2A

Answered: 1 week ago