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

undefined
Implement the following Classes, interfaces and their corresponding methods Course -courseName: String -gpaEarned: double +Accessors and Mutators Student -FirstName: String -LastName: String -StudentID: int -Courses: ArrayList -gpa: double +Accessors and Mutators +toString() +addCoursel) +calGPA) Undergrad -undergradWage: double -undergradHours: 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 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 salry. Implement the following Classes, interfaces and their corresponding methods Course -courseName: String -gpaEarned: double +Accessors and Mutators Student -FirstName: String -LastName: String -StudentID: int -Courses: ArrayList -gpa: double +Accessors and Mutators +toString() +addCoursel) +calGPA) Undergrad -undergradWage: double -undergradHours: 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 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 salry
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
