Question: Problem One Create a program named, prob1.c. This program will calculate the paycheck for an hourly employee. The program should prompt the user to enter

 Problem One Create a program named, prob1.c. This program will calculate

Problem One Create a program named, prob1.c. This program will calculate the paycheck for an hourly employee. The program should prompt the user to enter the number of hours worked (Whole hours, no fractional hours) and the hourly rate of pay. Overtime hours (hours over 40) are paid double the hourly rate. The hourly rate may contain a fractional value (Dollars and cents). Display the users paycheck summary as in the following example. NOTE: The input prompt and the Output Summary should be formatted EXACTLY like the following examples. Exact Formatting includes identical Spacing) Example One Enter your hours: 44 Enter your hourly rate: 6.50 -SUMMARY Number of Hours: Hourly Rate: 44 6.50 Regular Pay: [ 40 hours ] 260.00 Overtime Pay: [ 4 hours ] 52.00 Total Pay Amount: 312.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!