Question: * * Task 0 1 : * * Create the ` Salesperson ` class. * * Task 0 2 : * * The ` Salesperson

**Task 01:** Create the `Salesperson` class.
**Task 02:** The `Salesperson` class contains the `id` and `sales` data fields.
**Task 03:** The `Salesperson` class contains a blank, default constructor, and an overloaded constructor to assign the two data fields.
**Task 04:** The `Salesperson` class contains the `setId()` and `getId()` methods.
**Task 05:** The `Salesperson` class contains the `setSales()` and `getSales()` methods.
**Task 06:** Create the `DemoSalesperson` class.
**Task 07:** Create the `DemoSalesperson2` class.
**Task 08:** The `DemoSalesperson2` program displays nine `Salesperson` objects with incrementing ids and sales values.
**Task 09:** Create the `SalespersonSort` class.
**Task 10:** The `SalespersonSort` program sorts seven `Salesperson` objects entered by a user either by `id` or `sales`.
**Task 11:** Create the `SalesperonDatabase` class.
**Task #12:**[CDEV-10029]**Task 12:** The `SalespersonDatabase` program can add new objects to the database.
**Task #13:**[CDEV-10029]**Task 13:** The `SalespersonDatabase` program can delete objects from the database.
**Task #14:**[CDEV-10029]**Task 14:** The `SalespersonDatabase` program can change objects in the database.
**Task #15:**[CDEV-10029]**Task 15:** The `SalespersonDatabase` program accepts up to 20`Salesperson` objects.
## Part A
Create a class named `Salesperson`. Data fields for Salesperson include an `int` ID number (`id`) and a `double` annual sales amount (`sales`). Methods include a blank default constructor and a constructor that requires values for both data fields, as well as get and set methods for each of the data fields.

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!