Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C#) Note: You do not have to use methods unless you want to. This can all be done in the Main method but add comments

(C#)

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 Employees first name o Employees last name o Employee type Have the user enter 1 for salary and 2 for hourly Calculate Total Pay o 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

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions