subject

5- write a payroll class that uses the following arrays as fields: • employeeid. an array of seven integers to hold employee identification numbers. the array should be initialized with the following numbers: 5658845 4520125 7895122 8777541 8451277 1302850 7580489. • hours. an array of seven integers to hold the number of hours worked by each employee. • payrate. an array of seven doubles to hold each employee’s hourly pay rate • wages. an array of seven doubles to hold each employee’s gross wages the class should relate the data in each array through the subscripts. for example, the number in element 0 of the hours array should be the number of hours worked by the employee whose identification number is stored in element 0 of the employeeid array. that same employee’s pay rate should be stored in element 0 of the payrate array. in addition to the appropriate accessor and mutator methods, the class should have a method that accepts an employee’s identification number as an argument and returns the gross pay for that employee. (10 points).

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, ayoismeisalex
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, deathfire5866
Determine whether the following careers would require training or college.
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, reyne36
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
image
Computers and Technology, 24.06.2019 15:30, livagrace
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
You know the right answer?
5- write a payroll class that uses the following arrays as fields: • employeeid. an array of seven...

Questions in other subjects:

Konu
Mathematics, 24.02.2021 18:00
Konu
Mathematics, 24.02.2021 18:00