Question: 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

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 ID number or sales value. 

Save the application as SalespersonSort.java.

Step by Step Solution

3.59 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

public class Salesperson private int id private double sales Salespersonint idNum double amt id idNu... View full answer

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 Java Programming Questions!