Question: Please follow the structure given in the flowchart/ figure. The Code Given Below is LAB 5 Task 2: I need to change this code to
Please follow the structure given in the flowchart/ figure. The Code Given Below is LAB 5 Task 2: I need to change this code to meet the requirements of the screenshots attached to this question.
#include
int main() { //Getting inputs from user float score1, score2, score3, score4; score1 = getscore(); score2 = getscore(); score3 = getscore(); score4 = getscore(); displayResult(score1, score2, score3, score4);
return 0; } float getscore() { float score; // Take input from user do { cout > score; } // Validate score while (score 100); return score; }
float findLowest(float score1, float score2, float score3, float score4) { //Finding lowest of 4 float least; least = score1; if (score2
} //Displaying results void displayResult(float score1, float score2, float score3, float score4) { cout
} 

Problems Modify Lab 5-Task2 so that the program accepts a series of test scores and calculates the average of the scores with the lowest score dropped. Your program should follow the same structure chart as in Lab 5: Main geteres displayRusult calcAverage findLowest Where get Scores asks for a series of scores; calcAverage () calculates the average of the scores with the lowest score dropped. It calls the function findlowest() to calculate the lowest score as shown in the chart. [Hint] Follow the example of Pr7-20.cpp Requirements Store student scores in an array. Declare array size by a constant so that you can rerun the program by different sizes. Calculate the lowest score following the same method in Lab5-Task2. An example of test run The output of your program might look like this when the array size is set to 10: csci>a.out Enter 10 test scores between 0 and 100. Score #1: 101 Score must be in the range 0 100. Please re-enter score. Score #1: 73 Score #2: 80 Score #3: 78 Score #4: -20 Score must be in the range 0 100. Please re-enter score. Score #4: 28 Score #5: 80 Score #6: 93 Score #7: 80 Score #8: 43 Score #9: 68 Score #10: 90 After dropping the lowest test score, the test average is 76.1 Thanks for using our system
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
