Question: Using C code, NOT c + + . Create a C project in CodeGrade using the provided template I 6 L 2 Sk 6 a

Using C code, NOT c++. Create a C project in CodeGrade using the provided template I6L2Sk6a.c
Write a C 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 ask the user for a single test score, store it in a reference parameter variable, 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. The average should be a float value and rounded to 2 decimal points.
Hint: If your test scores are integers and you divide by 4 and store in a float variable it will automatically round it to a whole number....to fix this you can divide by 4.0 instead and it will make the average be correct.
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.
Input Validation: Do not accept test scores lower than 0 or higher than 100.
Note: Each variable should be declared on a separate line.
Note: Include comments throughout the program to tell what the code does

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!