subject

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 and each sales value to zero. display the 10 salesperson objects. save the files as salesperson. java and demosalesperson. java.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:30, solikhalifeoy3j1r
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, kevin72836
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
Create a class named salesperson. data fields for salesperson include an integer id number and a dou...

Questions in other subjects:

Konu
Mathematics, 03.04.2020 09:33
Konu
Mathematics, 03.04.2020 09:33