Question: Implement the classes in the UML diagram: Student String status -String name Person -String phone number Person(String name, String phone_number) String getName() String getPhone_number()

Implement the classes in the UML diagram: Student String status -String name Person -String phone number Person(String name, String phone_number) String getName() String getPhone_number() 

Implement the classes in the UML diagram: Student String status -String name Person -String phone number Person(String name, String phone_number) String getName() String getPhone_number() Employee -double salary Student(String name, String phone_number, String status) + String getStatus() +String toString() +Employee(String name, String phone_number, double salary) +double getSalary)) Faculty -boolean advisor -String title Staff -String rank +Faculty(String name, String phone_number, double salary, boolean advisor, String rank) +boolean isAdvisor +String getRank) +Staff(String name, String phone_number, double salary, String title) + String getTitle() +String toString() +String toString() In a loop, use the split method to extract the words separated by commas. If the first string is "Student", (respectively Faculty or Staff) create a Student object and use the subsequent words to initialize this object with the name, phone number and status. 2- Having constructed the array of Persons (You can write the code of this part even if you did not manage to fill the array in part 1, write the loops that answer the following queries: a. Print the list of staff b. Print the list of advisors c. Find the employee with the highest salary. d. Count the number of senior students Program Output: The list of staff: Staff (Deann Borrego} Staff (Griselda Longway} The list of advisors: Faculty (Tianna Guinan} Faculty (Lavonna Gorelick} The employee with the maximal salary is Faculty (Lavonna Gorelick} The number of senior students is: 1

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 Programming Questions!