Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Written in C# Visual Studio Code. Note: You do not have to use methods unless you want to. This can all be done in the
Written in C# Visual Studio Code.
Note: You do not have to use methods unless you want to. This can all be done in the Main method but add comments for each section (as I have done below) Write a program that calculates the take-home pay for an employee. o Use appropriate constants. o Make sure to change the class name to EmployeePayApp User Inputs the following data o Employee ID o Employee's first name O Employee's last name O Employee type Have the user enter 1 for salary and 2 for hourly Calculate Total Pay If an employee is salaried, allow the user to input the salary amount. o If an employee is hourly Allow the user to input the hourly rate and the number of hours clocked for the week. Calculate salary - for hourly employees, overtime is paid for hours over 40 at a rate of 1.5 of the hourly rate. Calculate Total Deductions O For all employees Federal tax of 18% is deducted. A retirement contribution of 10% Social Security tax rate of 6% should also be deducted. Calculate take home pay ( Total Pay Total Deductions) Display results see exampleStep 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