Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this C + + program you will create a class named Student consisting of the following members Attributes ( private members ) : name
In this C 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 Sample output: Name: Bob Jones Major: Computer Science Grades: D B A C F I keep getting an error saying string has not been declared as wellC
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