Question: In this program you will create a class named Student consisting of the following members Attributes ( private members ) : name major grades (
In this program you will create a class named Student consisting of the following members
Attributes private members:
name
major
grades array of elements
Methods public members:
Constructor requiring a name and major as parametersarguments Constructor will also create random grades using the Modifier for grades.
Accessors and Modifiers for each attribute
Accessor for grades will display all grades in the array along with their letter grades
Modifier for grades will assign a random number to each element in the array of grades.
GetLetterGradeint score returns the letter grade of a score using the following grading scale:
A
B
C
D
F
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
