Question: Programming Language: C# deral law requires that hourly employees be paid time and a half for all work above 40 hours per week. Using Visual
Programming Language: C#
- deral law requires that hourly employees be paid time and a half for all work above 40 hours per week. Using Visual Studios Write a program that prompts the user to enter their hours worked and hourly wage (e.g. $10.00/hr) and then computes and prints their pay. The program should test the number of hours worked to determine if any overtime pay is due.
As an example for regular pay (no overtime) suppose that a worker makes $8/hr and works 40 hours in a week. His pay would be: 40 hours times $8.00 or $320.00. Another employee who worked 50 hours would have some overtime pay added. That employees pay would be computed as: 40 hours times $8.00 for $320 PLUS 10 hours times $8.00 times 1.5 for another $120. The total then would be $440.00.
Test the program for the following salary and hours worked:
Salary Hours
10 40
10 55
12 30
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
