Question: Assagnment: Joe's Pima Palace needs a C. program to calculate the number of slices a pirra of any sire can be divided into and tell

 Assagnment: Joe's Pima Palace needs a C. program to calculate the
number of slices a pirra of any sire can be divided into

Assagnment: Joe's Pima Palace needs a C. program to calculate the number of slices a pirra of any sire can be divided into and tell the user the size of the pira he/she had picked. The program should perform the following steps: A. Ask the user for the diameter (2r) of the pizma in inches. The diameter a hould be an integer number between 7 and 15 . B. Calculate the number of slices that may be taken from a pirra of that sire. Resind the number of slices to closest integer. C. Display a message telling the number of slices.. D. Decide the sire of the pirsa as follow a. If the N of alices is 3,4 , or 5 , then display the metsage "It's a amall pixza " b. If the 1 of lices is 6,7 , or 3 , then dinplay the menaee "It's a mediom pirra 1 c. If the ll of alices is 9 or 10 , then displas the message "It's a large piera" d. Ouhernise display "Size is not sapported" What is the value of x atter th program exis the loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!