Question: Develop a program that calculates weekly pay for group of hourly workers. Design appropriate prompts and outputs of your own design. The program should prompt

Develop a program that calculates weekly pay for group of hourly workers. Design appropriate prompts and outputs of your own design. The program should prompt for the number of hours worked in the week and the hourly rate. Generate the gross weekly pay and print it. Hours over 40 should be paid at time and a half hourly rate. Use a sentinel value to terminate data entry.

Note: For this program, it is acceptable to use float or double data types for monetary units. However, you should never use float and double data types for monetary unit.

Bonus (5 points). Write a small program that illustrates the dangers of using floats (or doubles) for monetary units.

Please use only C language and NOT C++ or Java You are now also allowed to use the following for loops math.h and pow() function formatting float and double numbers switch statements getchar() function ASCII chart dowhile loops break and continue statements Logical AND (&&), logical OR (||), logical NOT (!) operators

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!