Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions