Question
***THIS IS FOR C# PROGRAMMING*** Write an application that asks the user if he/she is a Salary employee or an Hourly employee. If Salary, then
***THIS IS FOR C# PROGRAMMING***
Write an application that asks the user if he/she is a Salary employee or an Hourly employee.
If Salary, then ask the user for their yearly wage. Divide the yearly wage by 52 and display the result as their weekly wage.
If Hourly, then ask the user for their hourly wage and the hours worked that week. Calculate their wage based on the following rules:
1. Up to and including 40 hours of the hours worked are paid to the employee at their hourly wage. This is considered regular pay.
2. Any hours over 40 are paid at "time and a half" meaning (hourly wage * 1.5). This is considered overtime pay.
3. The total weekly wage for hourly workers is calculated as regular pay + overtime pay.
You should create at least 2 methods as part of this project. These methods are
1. CalculateWeeklyWageForSalary
2. CalculateWeeklyWageForHourly
Display the resulting weekly wage for the employee in currency format.
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