Answered step by step
Verified Expert Solution
Link Copied!

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#

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

From Herds To Insights Harnessing Data Analytics For Sustainable Livestock Farming

Authors: Prof Suresh Neethirajan

1st Edition

B0CFD6K6KK, 979-8857075487

Students also viewed these Databases questions

Question

Always show respect for the other person or persons.

Answered: 1 week ago

Question

1. What are your creative strengths?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago