Calculates the average of a group of test scores

Assignment Help Basic Computer Science
Reference no: EM13529245

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:

1. 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.

2. 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.

3. 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.

Note: Input Validation: Do not accept test scores lower than 0 or higher than 100.

Reference no: EM13529245

Questions Cloud

Transported by facilitated diffusion : Why does less water need to be removed from a solute that is transported by facilitated diffusion than a solute that is transported by simple diffusion.
Obtain the protons speed when it reaches the negative plate : The electric field strength is 40800 N/C inside a parallel-plate capacitor with a 2.2 mm spacing. obtain the proton's speed when it reaches the negative plate
Determine the break even point in units of l and m : The sales mix for products L and M is 60% and 40%, respectively. Determine the break even point in units of L and M.
How much charge is on each coin : A capacitor is made from two 1.0 cm diameter coins separated by a 0.14 mm thick piece of paper (K = 3.7). How much charge is on each coin
Calculates the average of a group of test scores : 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
Estimate a cost formula for shipping expense : Prepare a contribution format income statement for thequarter - estimate a cost formula for shipping expense.
Increased ratio of sphingolipids to phospholipids : What would happen to the melting temp of a lipid bilayer if: There was an increased ratio of sphingolipids to phospholipids? There was a decreased ration of phosphatidycholine tophosphatidyethanolamine?
Find the normal force that the incline exerts on the block : A horizontal force of 142 N pushes a 11 kg block up a frictionless incline that makes an angle of 44° with the horizontal. find the normal force that the incline exerts on the block
Amultistep protein purification protocol : You have completed amultistep protein purification protocol and found that your totalactivity has decreased. Is your purification a failure?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Calculate and display height and cost of container

Compute and display the height and cost of the container. Use the following formulas, where V is the volume, r is the radius, h is the height, and C is the cost.

  How much ethyl acetate is produced

Write a matlab program that calculates how much ethyl acetate (Z g/L) is produced in g/L starting from X g/L of ethanol and 5 g/L of acetic acid.   Your program should produce a plot of Z vs X.

  Sentinel-controlled repetition to allow a user

The computeShippingCharges() method should use sentinel-controlled repetition to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value.

  Explore and estimate software programs

Explore and estimate software programs based on following criteria: Needs assessment -- Why would the prospective user require program? Write down the features of the program?

  Explain what can-t be measured can-t be effectively managed

According to the following quote "what can't be measured can't be effectively managed." The question is can everything that is important in network security be measured using metrics or any other process? Why or Why not?

  What window events can a program handle

What is the paintComponent method? How is it used in Java graphics? How does a program intentionally cause the paintComponent method to execute?

  The privacy protection act

The Privacy Protection Act (PPA) as it relate to computer forensics

  Explaining straight-line depreciation method

Explain in scholarly detail how to carry out Straight-line Depreciation Method calculations.

  Determine characters in the encyclopedia

The text of the Encyclopedia Britannica is about 44 million words. For a sample of about 2000 words, the average word length was 6.1 characters per word. Approximately how many characters are there in the encyclopedia?

  Structured analysis and object-oriented techniques

A frequently asked question is "Can structured techniques and object-oriented techniques be mixed?

  Mini case: k-mart

Mini Case: K-Mart

  Approach to organizing and funding it organization

What would be the best approach to organizing and funding their IT organization? Describe at least one alternative approach. Provide justification for why your proposed approach is the best one.

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