Question: . Pizza Pi Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any ste can be divided into. The
. Pizza Pi Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any ste can be divided into. The program should perform the following steps: A) Ask the user for the diameter of the pizza in inches. B) Calculate the number of slices that may be taken from a pizza of that size A) Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you m the following facts: . Each slice should have an area of 14.125 inches. . To calculate the number of slices, simply divide the area of the pizza by 14.129 The area of the pizza is calculated with this formula: Area T NOTE: t is the Greek l radius of the pizza. Divide the diameter by 2 to get the radi the etter pi. 3.14159 can be used as its value. The variable ist ius Make sure the output of the tion, roundad
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
