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

  Byte-stuff the subsequent frame payload

Byte-stuff the subsequent frame payload in which E is the escape byte, F is the flag byte, and D is a data byte other than an escape of a flag character.

  Describe a sequence of probes that could enable b

describe a sequence of probes that could enable B to obtain sufficient state information to continue with A's connections.

  What relation between software application process andthread

What is the relation between a software application, process and thread

  Write a program to display a simplified bill

Suppose automobile repair customers are billed at the rate of $35 per hour for labor. Also, suppose costs for parts and supplies are subject to a 5% sales tax.

  Design the logic for an application that reads in the name

Design the logic for an application that reads in the name of an item ordered by a customer and outputs either the correct price or the message "Sorry, we do not carry that."

  Problem regarding the pancake sort

The purpose of this lab is to emphasis the operation of a stack. You will implement a "pancake sort", aptly named because you can envision the values that you are trying to sort as a stack of pancakes that you want to arrange to have the largest ..

  Computer science question html website development

Design a preliminary homepage called "cssprelimI.htm". It should be similar in layout to the example below, but you may use your own content.

  Data management and business intelligence

(search term business casetemplate) to explain the justification for implementing a database management systemto improve business intelligence within the company.Within your business case, begin by explaining business intelligence. Then explain data ..

  Describe emerging technologies and trends

What technologies do you see becoming mainstream in the next 18 months, 5 and 10 years.

  Torque m that should be applied to the screw

Determine the torque M that should be applied to the screw to start lifting the 6000-lb load acting at the end of member ABC

  List the complete reference-source information

List the complete reference-source information for where you found the EIA standard resistor value and tolerance information. 2) How was this reference discovered and where?

  Prompt method to get the investment amount

Modify the the JavaScript code so it provides for the option buttons. When the user click the Yearly Interst button, the application should compound the interest yearly, when the user clicks the Monthly Interest button, the application should comp..

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