Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Again, try to justify your findings.

Answered: 1 week ago