Question
Create a class called StudentGrades. Method Descriptions: - creates an empty array for the grades_list array. AddGrade Adds the passed in grade to the list.
Create a class called StudentGrades.
Method Descriptions:
AddGrade Adds the passed in grade to the list. Note that any number that is NOT 0 100 should be rejected.
RemoveGrade Removes the first occurrence of the passed in grade from the list. If the grade is not found, the method should return false.
GetClassAverage() Average the grades in the list and return the average.
GetHighestGrade - Find and return the highest grade in the list.
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.
I need help with setting up these methods manually using the list class on c#
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started