Question: Type answer of MATLAB 4. Write a MATLAB program that determines the gross pay for an employee. The company pays the hourly wage for the
4. Write a MATLAB program that determines the gross pay for an employee. The company pays the hourly wage for the first 40 hours and time and a half times the hourly wage for all hours worked in excess of 40. The program should accept the hourly wage and the total hours as input and should display the employee's gross pay as output. (Assume that the total hours will always be greater than 40) ex: Hourly wage: $15; Total Hours: 60 Gross Pay: $1050 (15 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
