Question: THIS MUST BE DONE IN C#!! Create a class called StudentGrades. This class should be designed based off the following UML Diagram: class StudentGrades -double

THIS MUST BE DONE IN C#!!

Create a class called StudentGrades. This class should be designed based off the following UML Diagram:

class StudentGrades

-double list grades_list

+

+AddGrade(double): void

+RemoveGrade(double): bool

+GetClassAverage(): double

+GetHighestGrade(): double

+GetLowestGrade(): double

Method Descriptions:

a. - creates an empty array for the grades_list array.

b. AddGrade Adds the passed in grade to the list. Note that any number that is NOT 0 100 should be rejected.

c. RemoveGrade Removes the first occurrence of the passed in grade from the list. If the grade is not found, the method should return false.

d. GetClassAverage() Average the grades in the list and return the average.

e. GetHighestGrade - Find and return the highest grade in the list.

f. GetLowestGrade Find and return the lowest grade in the list.

In main, create a StudentGrades object to test the listed methods. Add 10 grades randomly and call each method to test your class.

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!