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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
What should be used when performing vehicle maneuvers?
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
question
Mathematics, 23.02.2021 03:10
Questions on the website: 13722361