Question: Create a constructor for Student that has the student s name, major, and GPA. Create 5 students / instances . Create the following methods

"Create a constructor for Student that has the students name, major, and GPA.
Create 5 students/instances.
Create the following methods/functions:
printStudent()--> return the information for all students.
printSpecificMajorStudents(major)--> return students information with specific major
printStudentSpicificGPA(gpa)--> return students information with specific GPA
ListStudents()--> r TN20 eturn a list of the name of all students"

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