Problem

The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays t...

The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays the number of slices of pizza into which a circular pizza can be divided. The manager will enter the radius of the entire pizza. For this exercise, use the number 14.13 as the area of a pizza slice, and use 3.14 as the value of pi. a. Create an IPO chart for the problem, and then desk-check the algorithm twice. For the first desk-check, use 10 as the radius of the pizza. For the second desk-check, use 6. Hint: For the first desk-check, the number of slices should be a little over 22.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown in Figure 4-12 in the chapter. Then code the algorithm into a program.

c. Desk-check the program using the same data used to desk-check the algorithm.

d. If necessary, create a new project named Intermediate13 Project and save it in the Cpp7\Chap04 folder. Enter your C++ instructions into a source file named Intermediate13.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

e. Save and run the program. Test the program using the same data used to desk-check the program.

REFERENCE : FIGURE 4-12

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4