Question: From soft engineering Assignment Task 1 Class Diagram(50 points) Below is a Class Diagram Example, Read and answer the following questions: > +firstName: String +lastName:
Assignment Task 1 Class Diagram(50 points) Below is a Class Diagram Example, Read and answer the following questions: > +firstName: String +lastName: String Professor Student +bonus: Dollars +major: String Question 1: (25 points) Now extend the given diagram. The Professor class aggregates a Bonus class, which has fields named bonusPerYear (Dollars) baseSalary (Dollars), extraWorkingHours (int) and a method called calculateBonus (return Dollars). A class ForeignExchangeStudent inherits the class Student with new fields country (String), availabilityHours (int) and a method scheduleFinal(return String). Revise the class Professor basec on the Bonus class (hint: change related fields) and draw the complete new class diagram including the class Dollars (no need to specify the fields and methods of Dollars class)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
