c++ program to calculate the average of series of test scores, where the lowest
ID: 3541249 • Letter: C
Question
c++ program to calculate the average of series of test scores, where the lowest score in the series is dropped. input the scores 55 75 70 85 55
use fuction prototype are
void getvalue(); // no parms
void calaverage(int, int, int, int, int); // 5 formal parms
int findlow(int, int, int, int, int); // 5 formal parms
do seperatly
repeat the same with fuction prototype
void getvalue(int, int, int, int, int); // 5 formal parms
void calaverage(int, int, int, int, int); // 5 formal parms
int findlow(int, int, int, int, int); // 5 formal parms
Explanation / Answer
Once you have all of the scores, iterate through them to find the lowest one. A simple iteration will work fine:
Now lowest will hold the lowest score. You can subtract it from your total and divide by numTest-1and you should be all set
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.