Fill in the appropriate code for function prototypes and fun
Fill in the appropriate code for function prototypes and function definition to complete the following code #include Using namespace std;//Comments//getHighScore - reads in the three test scores and print the highest score//getLowScore - reads in the three test scores and print the lowest score//computeAverage - adds the three test scores together to get a sum and then divides the sum by two to//calculate the average
Solution
void getHighScore(int a,int b,int c)
{
cout << \"\ The highest score is : \";
if((a>b) && (a>c))
cout << a;
else if((b>a) && (b>c))
cout << b;
else
cout << c;
}
void getLowScore(int a,int b,int c)
{
cout << \"\ The lowest score is : \";
if((a<b) && (a<c))
cout << a;
else if((b<a) && (b<c))
cout << b;
else
cout << c;
}
void computeAverage(int a,int b,int c)
{
int sum;
float avg;
cout << \"\ The average score is : \";
sum=a+b+c;
avg=sum/3;
cout << avg;
}
int main()
{
int a,b,c;
cout << \"Enter the three scores\ \";
com >> a >> b >> c;
getHighScore(a,b,c);
getLowScore(a,b,c);
computeAverage(a,b,c);
return 0;
}

