The writer is very fast, professional and responded to the review request fast also. Thank you.
Write a C program that will calculate the gross pay of a set of employees.
For each employee the program should prompt the user to enter the clock number, wage rate, and number of hours as shown below.
The program determines both the overtime hours (anything over 40 hours) and the gross pay, and outputs the following format. Hours over 40 are paid at time and a half.
————————————————
Clock# Wage Hours OT Gross
————————————————
098401 10.60 51.0 11.0 598.90
In the example above, since the employee worked 51 hours, 11 of those hours are overtime and are paid at time and a half. The first 40 hours are paid at the standard
time using the hourly wage rate. If no overtime hours are worked, just indicate 0.0 hours in your output.
Column alignment, leading zeros in Clock#, and zero suppression in float fields are important.
With this and in future assignments, please start using constants. For example, instead of hard coding a value for 40.0, use a constant:
#define STD_HOURS 40.0
Replace 40.0 in your code with the symbolic constant STD_HOURS
There are a few other constants you should define and use for this assignment. Use at least one more constant in your homework.
Use the following data as test input:
Clock# Wage Hours 98401 10.60 51.0 526488 9.75 42.5 765349 10.50 37.0 34645 12.25 45.0 127615 8.35 0.0
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more