Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 code
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 antStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started