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

  Examine the benefits and drawbacks of each format for users

Examine the benefits and drawbacks of each format for users. Determine whether you agree or disagree that Blu-ray was the superior choice technologically over HD-DVD. Provide a rationale for your response.

  Describe the types of information available to a program

Describe the types of information available to a program when using the KeyListener interface.

  The business objectives of an organization

How information systems are linked to the business objectives of an organization.

  What weaknesses in choicepoint information security manageme

Question 1. What weaknesses in ChoicePoint Information Security Management practices likely contributed to their data breach? Please explain how they contributed and what Choice Point could do to strengthen these areas.

  Choice of networks against all electronic threats

Identify hardware and software needed to secure your choice of networks against all electronic threats. Compare Local Area Networks (LANs), Wide Area Networks (WANs), and wireless technologies.

  Successful web application deployment

What are the steps to a successful web application deployment? How does web application deployment differ from desktop or mobile application deployment?.

  Determining the current infrastructure

GAI is a new advertising firm, and they have hired staff, are established in two locations, and have a need to get their internal IT services configured. They have an IT staff, but they do not have the in-house expertise to address their current i..

  Visual effects and mobile websites

Imagine that you add Internet Explorer filters to a Website containing fixed images to enhance the images with a shadow. After adding the filters, it fails to work. Explain why this may have happened. Propose another solution that you can use to g..

  Methodology and system analysis

I have uploaded the assignment I have done n I need you to continue writing a research report on it.i am attaching a sample report for your reference Report length: 5000words, about 20pages long. You are allowed to use diagrams, tables, and plots/..

  Find max score and display

Write a program using functions to do the following tasks.

  Write a program to determine the answers of the square root

How do you write a program to determine the answers of the square root of 30, the sine and cosine of 100, the value of the floor, ceiling, and round of 44.7, and the larger and the smaller of the character K and the integer 70? In Java code

  Ability to apply the concepts

The goal of this project is for you to demonstrate your ability to apply the concepts

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