Question: Provide an interface Measurable with a method double getMeasure() that measures an object in some way. Write a class Employee that holds the name, salary

Provide an interface Measurable with a method double getMeasure() that measures an object in some way. Write a class Employee that holds the name, salary and job title of an employee., which are passed as arguments to the constructor Make Employee implement Measurable.

Write a driver class and with a method double average(Measurable[] objects) that computes the average measure. Use it to compute the average salary of an array of employees.

Then add a method Measurable largest(Measurable[] objects)to your driver class. Use it to find and display the name and job title of the employee with the largest salary.

I need help with the last part to find and display the name and job title of the employment with the largest salary.

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!