Question: Hello, i need help with this code Programming Exercise 9-4 | Instructions Salespersonava Salespersonsor...+ 1 public class Salesperson In Chapter 8, you created a Salesperson

Hello, i need help with this codeHello, i need help with this code Programming Exercise 9-4 | InstructionsSalespersonava Salespersonsor...+ 1 public class Salesperson In Chapter 8, you created a

Programming Exercise 9-4 | Instructions Salespersonava Salespersonsor...+ 1 public class Salesperson In Chapter 8, you created a Salesperson class with fields for an ID number and sales values. Now, create an application that allows a user to enter values for an array of seven Salesperson objects. Offer the user the choice of displaying the objects in order by either (I)D number or (S)ales value. private int d private double sales 5 Salesperson (int idNum, double ant) Grading salesant; Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. public int getId() return d 12 13 4public double getsales() 15 16 17 18 public void setId(int idNum) 19 20 21 22 public void setSales(double ant) 23 24 25 26 27 28 29 30 Once you are happy with your results, click the Submit button to record your score return sales sales ant

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!