Question: In java: Implement the following Classes, interfaces and their corresponding methods Student Course -courseName: String -gpaEarned: double +Accessors and Mutators -FirstName: String -LastName: String -Studenti:

In java: Implement the following Classes, interfaces and their corresponding methods

In java: Implement the following Classes, interfaces and their corresponding methods Student

Student Course -courseName: String -gpaEarned: double +Accessors and Mutators -FirstName: String -LastName: String -Studenti: int -Courses: ArrayList -gpa: double +Accessors and Mutators +toString() +addCoursel) +calGPA) Undergrad -undergradWage: double -undergrad Hours: double +Accessors and Mutators +toString() Grad -department: String +Accessors and Mutators +toString() Masters -gradSalary: double +Accessors and Mutators +toString() PhD -phdStipend: double +Accessors and Mutators +toString() > Work +Salary() Student "printData()" Method: - This prints the student information in the format: "Student First Name: xx, Last Name: xx and ID: xx". Student "addCourse()" Method: This method should add a course information to student along with updating his GPA. They should declare a variable "number of courses" to keep track of courses. Student "calGPA()" method: This calculates average of gpa among all the courses that the student took; Undergraduate salary is calculated as: wage*hours Masters salary is based on their salary Phd salary is their stipend Main Method Class Create an undergrad student object, masters student object and PhD student object. Display their salary

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!