Percentage of the total number contributed

Assignment Help Basic Computer Science
Reference no: EM131205370

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, enther 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.

Reference no: EM131205370

Questions Cloud

What is the cash coupon payment in year three : Assume a 3 year $100,000 bond with an 11% stated rate and a 9% effective rate was sold for $105,063. Interest is paid annually. Use the straight line method for amortization. What is the interest expense in the first year of bond? What is the cash co..
Simulate and display the process of looping : Write a program will simulate and display the process of looping. The program will accept input for name of a variable; initialize value, conditional operator, conditional value, alternating value such as increment (++) or decrement (--) and the i..
Construct a tax-subsidy revelation scheme : Construct a tax-subsidy revelation scheme such that it is a dominant strategy for each party to report truthfully their private information.
What is the third term in the sequence : Discrete mathmatics question: Consider the sequence defined by the formula b_k=k^3 for k>=2 . What is the third term in the sequence?
Percentage of the total number contributed : 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 ..
What is the degree of combined leverage : In part b, if sales double, by what percentage will EPS increase? If you combine Sinclair's capital structure with Boswell's operating plan, what is the degree of combined leverage?
What is the proper role of free trade : International Trade - Assignment - Are global1 trade2 patterns consistent with economic theory and - How might democratic states avoid a ‘protectionist backlash' against free trade?
Explain how education might produce positive external effect : Suggest a possible action of the government to induce the market for education to perform more eminently.
Differences between a compiler and an interpreter : High-level languages can be compiled or interpreted. Give two differences between a compiler and an interpreter.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a function to simulate the game show problem

Write a function to simulate the game show problem. Your function should randomly select locations for the prizes, select a door at random chosen by the contestant, and then determine whether the contestant would win or lose by sticking with the o..

  Components of the dte and dce

What is the relationship between a signal's spectrum and its bandwidth? What is attenuation? Compare and contrast DTE with DeE. What are the components of the DTE and DCE?

  Explain areas of information technology as a metric

The confidentiality, integrity, availability (CIA) triad represents generic security goals. CIA is typically applied to specific areas of information technology as a metric or guideline for establishing or maintaining security.

  Critical thinking what crime in the cyber realm

Kizza (2014) addressed network attacks and intrusions broadly as "cybercrime" and attributed them largely to moral and ethical deficiencies of the perpetrators. Lessig (2006) approached law in the network largely in terms of computer "code" that d..

  Under what circumstances will it fail

will the above function compile in C++? Is it correct? Under what circumstances will it fail and how should it be corrected?

  Sequential and selection processing control structure

Sequential and Selection Processing Control Structure

  Write a function prototype for a function

Write a complete function called calcTriArea that will calculate and return the area of a triangle. It takes two float/double values: the base and height as its arguments. The area of a triangle is one-half the base times the height.

  How many instructions can the processor execute

Assume that we are working on a workstation with an instruction rate of 500 MIPS. How many instructions can the processor execute between the receipt of each individual bit of the message?

  Write specifications a method that advances any given date

A date consists of a month, day, and year. Frequently, we represent each of these items as integers. For example, July 4, 1990, is a month 7, day 4, and year 1990.

  Contrast crystallized versus fluid intelligence

Compare and contrast crystallized versus fluid intelligence. Give an example of each form of intelligence 3 paragraphs.

  Find the gradient magnitude and gradient direction

Consider the sub-image shown above. Find the gradient magnitude and gradient direction at the center entry using the following operators.

  Differentiate matrix and blosum matrix

Write down the difference between matrix and a Blosum60 Blosum20 matrix? If one uses one and when other? What is meant by Clustal and summarize the operation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd