Program that calculates average of a group of test scores

Assignment Help Basic Computer Science
Reference no: EM131236350

Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions:

• void getScore() should ask the user for a test score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five scores to be entered.

• void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main, and should be passed the five scores.

• int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop.

Reference no: EM131236350

Questions Cloud

Write a three-page essay on unemployment in the us : Write a minimum of a three-page essay, using proper APA format, on the topic of unemployment in the U.S. Use a minimum of three scholarly sources.
Describe the relationship between influence and power : Describe power and explain how it relates to leadership. Describe the various types of power. Describe the relationship between influence and power.
How many times the coin should be tossed : Demonstrate the function in a program that asks the user how many times the coin should be tossed, and then simulates the tossing of the coin that number of times.
Find ib and ic and ie : The transistor Q1 in Figure has parameters β = 25, βR = 0.5, and VBE (on) = VBC(on) = 0.7 V. Find iB, iC , and iE for (a) v1 = 0, (b) v1 = 0.8 V, and (c) v1 = 3.6 V.
Program that calculates average of a group of test scores : int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop.
Makeup of the crowds surroundings the pulpits : 1) What differences do you see in the makeup of the crowds surroundings the pulpits on the two sides of the picture? What point is Cranach trying to make? 2) What views of the Bible are presented in the woodcuts?
Discuss standard methods for developing leaders in industry : Discuss standard Methods for developing leaders in this industry. Why are they important to your chosen organization? Describe strategies for how industry leaders balance competing values and priorities and avoid failure.
Causes that led to the american revolution : Considering the causes that led to the American Revolution, make a case that the Articles of Confederation were a logical form of government for the revolutionaries to adopt.
Egypt''s physical location along the nile river : How did Egypt's physical location along the Nile River affect the culture's political system,religion, and art? Explore at least three examples.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Big five personality profile

Complete the "What Is My Big Five Personality Profile?" self-assessment.

  How to call the function to update the statistics

A function which takes as in the parameters the three counters and displays them to the screen as shown in he example below.

  Why is the pages not showing up

why is the pages not showing up, they are on the side in the library part but when i click on each page they wont load into reader

  Optimal value of the objective function

Find the optimal value of the objective function for the following problem by only inspecting its dual. (Do not solve the dual by the simplex method)

  Project that will implement a new course registration system

Pretend that you are leading a project that will implement a new course registration system for your college. You are thinking about purchasing packaged course registration software or outsourcing the job to an external consultant. Using MS word, cre..

  Create a binary heap class in python

1. Create a binary heap class in python. 2.The Heap class should have a limited heap size.(the heap only keeps track of the n most important items) 3. pass the max heap size in the constructor. (If an element gets added to the heap that makes it grow..

  The convergence of different devices such as cameras

Think about how mobile our computing devices have become and the convergence of different devices such as cameras, phones, and computers. What do you think the computer of the future will be like? What capabilities will it have that computers ..

  Project manager for an it department

Define a work breakdown structure and describe the methodology behind constructing one.

  Explain how this situation came to be

These attributes have the same kind of data, even though they have different names. Examine Figure 5-46 and explain how this situation came to be. Do you think having different names for the same attribute types is rare? Do you think it is a probl..

  Given two variables is_empty which is associated with a bool

Given two variables is_empty which is associated with a bool

  Write a few lines of code to create a timer in java

Write a few lines of code to create a timer in Java which fires an ActionEvent every 150 msec. Assume the existence of a TimerEventHandler class which needs to respond to timer events.

  Propose an smtp option for remote client authentication

Explain why email servers often no longer permit such relaying from arbitrary clients.

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