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

  What are the changes in a company

What are the changes in a company when it receives ISO 9001 certification?

  Create a struct named as a computer which has brand

Write a program to store hardware specifications.Create a struct named as a computer which has brand, model name, processor name , processor speed, monitor screen size , hard disk space, size of Ram and graphic card name. Create two objects nameda..

  Question regarding the checked on all phones

You have been given a suspect's phone and need to determine what was accessed and from where. What are some areas that should be checked on all phones?

  Identify listening and communication skills

Identify listening and communication skills within virtual teams and how computer technology may enhance collaboration.

  Information that comes from an external source

What is the name used to refer to the information that comes from an external source and fed into your computer software?

  Security being a top concern for any organisation

Task Task: Security being a top concern for any organisation, choosing the correct security solutions is of utmost importance. Consider an area of information technology (IT) security, such as, network security, e-mail security, database security ..

  Explain in detail each step of the machine cycle show the

high-level computer languages are created to be understood by humans. as a result the keywords and the commands of

  Capacity per day for the worker

1. Defining one flow unit as one minute of work, what is the capacity per day for the worker at "Toast" step? Round your answer to the nearest integer. Your answer is.

  Extract these location coordinates from this html file

Complete the exercise by reading the plain text in your character vector into a data frame. Use read table () to do this. The parameters, text, skip, header, and sep should be useful here.

  Write an asm procedure which reverses the string source

Given the BYTE array "source", write an ASM procedure which reverses the string source and places the result into BYTE "destination". Pay attention to the difference in string sizes vs. individual character locations.

  Discusses six reasons why proper forensics protocols

Using at least 500 words - summarize the article. The author discusses six reasons why proper forensics protocols must be followed when collecting computer evidence - can you think of any other reasons

  How face-to-face project meetings provide greater value

Identify three techniques that can be used to make project meetings more effective. How do face-to-face project meetings provide greater value than phone conferences and virtual meetings?

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