Question: In JAVA Develop a simple class for a Student. Include class variables; StudentID (int), FirstName, LastName, GPA (double), and Major. Extend your class for a

In JAVA

Develop a simple class for a Student. Include class variables; StudentID (int), FirstName, LastName,

GPA (double), and Major. Extend your class for a Student to include classes for Graduate and

Undergraduate.

o

Include a default constructor, a constructor that accepts the above information, and a

method that prints out the contents FOR EACH LEVEL of the object, and a method that

prints out the contents of the object.

o

Write a program that uses an array of Students in a course. Input the Student information,

create the object, and add each student to the list. Use a StudentID of -1 as a sentinel value.

o

Print out the Students in the list.

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!