Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 PARTS: A) Create a class named Salesperson. Data fields for Salesperson include an integer ID number and a double annual sales amount . Methods

2 PARTS:

A)

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.

Write an application named 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.

Save the files as Salesperson.java and DemoSalesperson.java

B)

Modify the DemoSalesperson application so each salesperson has a successive ID number from 111 through 120 and a sales value that ranges from $25,000 to $70,000, increasing by $5,000 for each successive salesperson.

Save the file as DemoSalesperson2.java.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago