Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.3 (35 pts) Modify program sortedArrayAccessiva so that the array is of Employee Give this class the name sortedArrayEmployee.java. The sorting key is the employ

image text in transcribed
image text in transcribed
4.3 (35 pts) Modify program sortedArrayAccessiva so that the array is of Employee Give this class the name sortedArrayEmployee.java. The sorting key is the employ id. The class Employee is given blow: import java.util.Sterne lists this public peat ft. pusti d o public void the Dystem.out.println terate on = new Scannersystem in nextLine System.out.printint Ente- Inti t ystenis). Syste... Eser Sort 10 Double.Parseboblerex Scanner(System.in.nextLine public void Output : System.out.print("ones. ass. de Lassan.id o pusistor PERUM g .Hornet (). 1: (a). Grade: (a .nare, id, tary: Add a testing class that can test all the operations defined in the sortedArrayEmploye class Modify the sortedArrayEmployee class by adding a method that find the employee why has the highest salary. (Note, your code must return the employee, not his her salary) Modify the sortedArrayEmployee class by adding a method that find the average salary of all employees. Make your testing menu-driven. Submit All code and running screenshots 4.3 (35 pts) Modify program sorted ArranAccess.java so tha Give this class the name sortedArrayEmployee.java. Th id. The class Employee is given blow: import job.util.Scanner: public class Employee public ft di public String name: puolit double salary: public void Input) System.out.println("Enter rate ); name = new Scanner System.in.nextLine(); System.out.println("Enter 10: 6 = Integer.parstine Scanner(System.in).nextLine(): System.out.println("Enter Salary : selary = double parsebouble new Scanner(System.in.next.in public void output) System.out.printf("re: Sits, to: tats, Grade: nam id, slay public String tostring(1) return Steing. Format("trane (s). 10: (), Grade: (a)". nane, id, saiary: Add a testing class that can test all the operations defined i class

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions