Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started