I am trying to figure out how to create a very basic C++ program based on functions that calculates the average of a series of 5 tests scores, where the lowest score in the series is dropped. I am using MS Visual C++ 6.0 This is what I'd like to do:
1) I want to create a function "getValues" that asks user for 5 tests scores and store them in variables.
2) then use a function "findLowest" to determine which of the 5 test scores is the lowest and return that value.
3) Finally, use a function called "calcAverage" to calculate and display the average for the 4 highest scores.
Also I should not accept test scores higher then 100 or lower than 0.
Please any comments, help, suggestions, etc will be greatly appreciate it.
Thanks in advance,
P.S.: This is what I got so far, but I know it is all wrong:
using namespace std;
void getValues(int, int, int, int, int);
void findLowest(int, int, int, int, int);
getValues(int, int, int, int, int);
void getValues (int test1, int test2, int test3, int test4, int test5)
cout << "Please enter 5 test scores: ";
cin >> test1 >> test2 >> test3 >> test4 >> test5;
void findLowest (int test1, int test2, int test3, int test4, int test5)