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 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
You know the right answer?
5- write a payroll class that uses the following arrays as fields: • employeeid. an array of seven...
Questions
question
Spanish, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Chemistry, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Mathematics, 13.04.2021 21:20
question
Biology, 13.04.2021 21:20
Questions on the website: 13722363