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:

From soft engineering  From soft engineering Assignment Task 1 Class Diagram(50 points) Below is

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

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!