Question: Please program using C language. a2: (Weekly Pay Calculator) (25 points) Develop a program that calculates weekly pay for group of hourly workers. Design appropriate

Please program using C language.  Please program using C language. a2: (Weekly Pay Calculator) (25 points)

a2: (Weekly Pay Calculator) (25 points) 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, i 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

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!