You are asked to write a program that computes each employee’s weekly income. The program then outputs the names (First, Last), the weekly pay, and the string of the position of each employee. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use arrays: Two one-dimensional arrays to store the names (First, Last) of all the employees, a one-dimensional array to store the hourly pay rate, a one-dimensional array to store the total income, a one- dimensional starting array to store the position. Your program must contain at least the following functions:
Leave a Reply