Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedWritten 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 example

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

Algorithm DoSomething (A[0..n-1]) 1. value

Answered: 1 week ago