Question: Do the following .C program: Develop an algorithm that will determine the gross pay of a particular employee. You need to read the hourly rate,
Do the following .C program:
Develop an algorithm that will determine the gross pay of a particular employee. You need to read the hourly rate, and the amount of hours worked by the employee. You should display the hours, hourly rate, and gross pay of the employee. If the hours worked exceed 40 compute the overtime will be paid 1.5 *hourly rate. This program needs to have a selection statement that determines if the hours are overtime or not.
Test your program by entering an amount of hours that are over 40 and under 40. Example if hours is 20 and rate is $10 the gross pay will be $200. If there are 41 hours and the hour rate is $10 the gross pay should be $415. Please submit the .C file for this homework or copy the program and paste with the proper indentation. Ask the user at the end if he/she wants to continue. Use a loop to implement that feature.
Be sure that in your program you consider the following:
Your program includes:
1. proper case, variable names(meaningful and use conventions)
2. proper organization, indentation, white space, and comments
3. Has the right inputs and outputs, computes correct results . is efficient
4. Use a loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
