Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Silvia's Pizzeria sells four different sizes of pizzas: small, medium, large, and family. The manager of the pizzeria wants a program that displays the total

Silvia's Pizzeria sells four different sizes of pizzas: small, medium, large, and family. The manager of the pizzeria wants a program that displays the total number of pizzas sold, as well as the percentage of the total number contributed by each different size.

a. Using the chart shown earlier in Figure 4-12 as a guide, enter the input, processing, and output items, as well as the algorithm, in the first column.

b. Desk-check the algorithm twice. For the first desk-check, use 25, 50, 50, and 75 as the numbers of small, medium, large, and family pizzas. For the second desk-check, use 30, 25, 85, and 73. Record the percentages with one decimal place.

c. Enter the C++ instructions in the second column of the chart, and then desk-check the program using the same data used to desk-check the algorithm.

d. If necessary, create a new project named Intermediate14 Project, and save it in the Cpp8\Chap04 folder. Enter your C++ instructions into a source file named Intermediate14.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Test the program using the same data used to desk-check the program (Zak)."

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

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

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions