Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program: #include using namespace std; float findLowest(float,float,float,float); float getscore(); void displayResult(float,float,float,float); int main() { float score1,score2,score3,score4; score1=getscore(); score2=getscore(); score3=getscore(); score4=getscore(); displayResult(score1,score2,score3,score4); return 0; } float

program: #include  using namespace std; float findLowest(float,float,float,float); float getscore(); void displayResult(float,float,float,float); int main() { float score1,score2,score3,score4; score1=getscore(); score2=getscore(); score3=getscore(); score4=getscore(); displayResult(score1,score2,score3,score4); return 0; } float getscore() { float score; do { cout>score; }while(score100); return score; } float findLowest(float score1,float score2,float score3,float score4) { float min; min=score1; if(score2 

image text in transcribed

the code is shown above
Modify the program 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 below: Main getScores calcAverage displayRusult findLowest . C . gelScores 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. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions