Question: Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a Double annual sales amount. Methods include a constructor that

Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a Double annual sales amount. Methods include a constructor that requires values for both data fields, as well as get and set methods for each of the data fields. Save the file as Salesperson.java1
Write an application named DemoSalesperson that declares an array of 6 Salesperson objects. so each Salesperson has a successive ID number from 1001 through 1006 and a sales value that ranges from $10,000 to $60,000, increasing by $10,000 for each successive Salesperson and display the id and sales amount for each instance that you created. Save the file as DemoSalesperson.java
Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a Double annual sales amount. Methods include a constructor that requires values for both data fields, as well as get and set methods for each of the data fields. Save the file as Salesperson.java1
Write an application named DemoSalesperson that declares an array of 6 Salesperson objects. so each Salesperson has a successive ID number from 1001 through 1006 and a sales value that ranges from $10,000 to $60,000, increasing by $10,000 for each successive Salesperson and display the id and sales amount for each instance that you created. Save the file as DemoSalesperson.java

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