Question: Create a class name Salesperson. Data fields for salesperson includes an integer ID number and a double annual sales amount. Method includes a constructor that

Create a class name Salesperson. Data fields for salesperson includes an integer ID number and a double annual sales amount. Method includes a constructor that requires a value for both data fields as well as get a set method for each of the data fields. Write an application name Demosalesperson that declares an array of 10 salesperson objects. Set each ID number to 9999 and each sales value to zero. Display the 10 Salesperson objects. Say the file as salesperson.java and demo salesperson.java.

Modify the DemoSalesPerson application so each Salesperson has a successive ID number from 111 through 120 and a sales value that ranges from $25000 to $70,000, increasing by $5000 for each successive SalesPerson. Save the file as DemoSalesperson2.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 Databases Questions!