Write a program using an array.

perfect tutor
 (Not rated)
 (Not rated)
Chat

 The array contains the hours worked for 5 employees. These hours are entered by the user. All employees earn the same hourly wage. The program will calculate the gross pay for each employee.

Hint: the gross pay for each employee (an element in an array) : array[index] * hourly wage

 

- ask the user to enter the hours worked - refer to employee as employee 1,2,etc.

 

- ask the use for the hourly wage

 

- display the gross pay for each employee

 

- display gross pay with 2 decimal places (not shown in sample output)

 

Sample of the Output below:

 

    • 11 years ago
    A++ Guaranteed .Kindly let me now If you need more help! Thank you!
    NOT RATED

    Purchase the answer to view it