Calculates the average of three test scores

Assignment Help Basic Computer Science
Reference no: EM131210810

In this exercise, you create a program that calculates the average of three test scores. The program should contain three value-returning functions: main, get Test Score, and calc Average. The main function should call the get Test Score function to get and return each of three test scores. The test scores may contain a decimal place. (Hint: The main function will need to call the get Test Score function three times.) The main function then should call the calc Average function to calculate and return the average of the three test scores. When the calc Average function has completed its task, the main function should display the average on the screen. Display the average with one decimal place.

a. Create IPO charts for the problem, and then desk-check the algorithm using the following four sets of test scores: 56, 78, 90; 100, 85, 67; 74, 32, 98; 25, 99, 84.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 9-48. 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 Advanced23 Project. Enter your C++ instructions into a source fi le named Advanced23.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

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

Reference no: EM131210810

Questions Cloud

How can monetary policy coordination among countries : How can monetary policy coordination among countries increase the degree to which monetary policy can be used to pursue macroeconomic goals under fixed exchange rates?
What will happen to the value of the dollar : Use graphs to demonstrate what will happen to the value of the dollar in terms of the Japanese yen in each of the following situations:
What is the real us rate in terms of foreign interest rates : If the nominal U.S. interest rate is 10 percent and U.S. inflation is 6 percent, what is the real U.S. interest rate?- What is the real U.S. rate in terms of foreign interest rates?
What pressure do you face to close the deal with bleevit : What questions should you ask yourself as you consider whether to buy 2,000 refurbished computers from Bleevit or not? List as many questions as you can, and try to answer/ address each one. What would you final decision be? What ethical theory/th..
Calculates the average of three test scores : Create IPO charts for the problem, and then desk-check the algorithm using the following four sets of test scores: 56, 78, 90; 100, 85, 67; 74, 32, 98; 25, 99, 84.
Freshman and a mathematics major : (a) What is the probability that the student is both a freshman and a mathematics major? (b) Given that the student selected is a freshman, what is the probability that he is also a mathematics major
Calculate the two proportions of patients : In a larger study of glioblastoma multiforme you determine 2 year survival for drug and placebo-treated patients. You have 56 total cases. 31 get drug and 17 of these survive 2 years. 25 get placebo and 5 of these survive 2 years. Calculate the tw..
What will happen to the fed funds rate : The Fed anticipates a seasonal reserve need of $10 billion over the next month. - If the Fed supplies $20 billion in reserves, what will happen to the fed funds rate?
What is reserve need to maintain existing reserve conditions : Describe what the Fed should do to meet the reserve need in given question: - What is the reserve need to maintain the existing reserve conditions?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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