Question: Payroll Write a p rogram thatuses the following arpifs ink ust emptd: an apay of seven long integers to hold employee identification numbers. The ay

 Payroll Write a p rogram thatuses the following arpifs ink ust

Payroll Write a p rogram thatuses the following arpifs ink ust emptd: an apay of seven long integers to hold employee identification numbers. The ay should be initialized with the following numbers: 5658845 4520125 7895122 8777541 8451 hours: an arrey of seven integers to hold the number of hours worked by each employee ce: an arey of seven doubles to hold each employee's hourty pay rate wages: an array of seven doubies to hold each employee's gross wages inle ust The program should relate the data in each ardy through the subseripts. For example, the number in element 0 of the hours number is stored in element 0 of the empd apay. That same employee's element O of the payRate aprdyie Ust The program should display each employee number and ask the user to enter that employee's hours and pay rate. It should then calculate the gross wages for that employee (hours times pay rate) and store them in the vages apay. employee's identification number and gross wages. Input arpay should be the number of hours worked by the employee whose identification arey, After the data has been entered for all the employees, the program should display each Validation: Do not accept negative values for hours or numbers less than 15.00 for pay rate. k use link ust instead of aay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!