Reference no: EM133650150
Question: Write the Raptor code to solve the following problem.
All code will be written one Raptor file.
a. Ask the user for the number of employees in a company for which we like to calculate pay. Make sure the number of employees entered by the user is between
1 and 15. If the user enters an invalid input for the number of employees, issue an error message and ask again.
b. Once you have the correct number of employees, input the given number of employees' last name, hours worked and pay rate. You need to use 3 arrays, one for the names, one for the hours worked and one for pay rate.
c. Display the header "EMPLOYEE REPORT 03/20/2023"
d. Display the names, hours worked and pay rate in a tabular format (look at my example, below). Don't worry about the exact formatting, if the data doesn't line up depending on the names you enter.
e. Calculate pay, by multiplying hours and rate and store the data in another array.
If the number for hours worked is more than 40 hours, pay rate is calculated as double the regular rate.
f. Calculate and display the total pay for all employees.
g. Calculate and display the average of the pay for all employees.
h. Display the header "FINAL REPORT 03/20/2023"
i. Display the names, hours worked, pay rate, and pay in a tabular format.
j. Ask the user for an employee name and display his/her pay. If the employee's name is not in the list, issue an error message.