Question: Design a function that accepts an array of 10 students scores entered in the calling program, gets the best score, and then assigns grades based

Design a function that accepts an array of 10 students scores entered in the calling program, gets the best score, and then assigns grades based on the following scheme:

Grade is A if scores is >= best 10;

Grade is B if scores is >= best 20;

Grade is C if scores is >= best 30;

Grade is D if scores is >= best 40;

Grade is F otherwise.

The program prompts the user to enter all of the 10 scores and concludes by displaying the grades. Here is a sample run:

Enter 10 scores: 88 56 71 50 92 66 78 82 60 73

Student 0 score is 88 and grade is A

Student 1 score is 56 and grade is D

Student 2 score is 71 and grade is C

Student 3 score is 50 and grade is F

Student 4 score is 92 and grade is A

Student 5 score is 66 and grade is C

Student 6 score is 78 and grade is B

Student 7 score is 82 and grade is A

Student 8 score is 60 and grade is D

Student 9 score is 75 and grade is B

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 Databases Questions!