Question: Write a program called Sales.java that uses two 1-d arrays to store information about sales people and their sales Create an array to hold the

Write a program called Sales.java that uses two 1-d arrays to store information about sales people and their sales Create an array to hold the ID's (int) of 10 sales employees. Create another array to hold the sales amounts (double) for each employee parallel to the array of IDs. Write a loop to read in (Scanner) data for both arrays (sample file provided). Write a second loop to display the data from both arrays lined up with column headings. ID Sales 2121 $3456 2235 $5324 Add the following methods: a.highestSales (: Method that accepts ID array and Sales array to find which salesperson had the b.lowestsales (): Method that accepts ID array and Sales array to find which salesperson had the c.averageSales ): Method that takes in the Sales array and returns and prints the average sales In main, print the IDs of the salespeople who have below average sales and print the IDs of the d.searchID): Method accepts the ID array, Sales array and the target ID that needs to be searched highest sales. Print the employee's ID and sales amount. lowest sales. Print the employee's ID and sales amount. record salespeople who have above average sales. (Accept the ID to be searched from the user in Main and pass it as input). Search the ID array for that target ID and then print the ID and the sales for that salesperson. If the ID is not present in the array of IDs print a message stating the search ID was not found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
