First order? Save 5% - FIRST5 close
Anonymous

I need help on a C++ class problem?

If anyone could answer this it would be much appreciated. This is a problem from my book:

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 get 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, who uses the function to determine which of the five scores to drop.

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

Thankyou so much in advance, I figured their was someone out there that this is easy for.

Top 1 Answers
blueskies

Favorite Answer

I think you should put this in the Computer Programming category… they’ll be able to help you

Just go to the “Computers & Internet” category… and then post your question in the “Programming & Design” subcategory

1

Give your grades a lift Order