Question: ment 2- MIST 352 - Spring 2021 - Saved to this PC 0 Search D References Mailings Review View Help Emphasis Heading 1 Normal Strong



ment 2- MIST 352 - Spring 2021 - Saved to this PC 0 Search D References Mailings Review View Help Emphasis Heading 1 Normal Strong Subtitle Title A A A A ct l dn A No Spac Sata Paragraph Problem Description: WVU needs a payroll application, which has the capability to calculate and print the monthly pay of an employee. The application starts by printing a short description of what it does. Then, it asks for the employee name. Next, the application prompts for employee type ("H" for hourly and "S" for salaried.) If the user enters S, the gross pay is set to $4000 However, if the user enters H for an hourly employee, the application asks for the number of hours worked and the hourly rate and these are used to calculate the gross pay The deductions from the paycheck before tax cuts are contributions to health insurance (5300) and retirement plan (6%). The federal income tax (1596) and state income tax (5%) are deducted after the contributions to health and retirement are deducted from the gross pay. A sample payslip for each kind of employee is shown in the screenshots below. Make sure your applications output is similar or better than the screenshots given below. Salaried Employee Payslip Sample: This application calculated the salary of an employee based on their enployment status Enter the mane of the employee Jose Sartare111 Enter the enployee type H for hourly. S for salaried> : S Payslip - Jose Sartarelli Gross Pay : $4.000.00 Contributions lealth Insurance 300.00 Retirement Plan (6x) : $240.08 Pay After Contributions : $3,468.00 Federal Tax (15%) : $519.00 State Tax (5%) : $123.88 Het Pay : $2.768.68 Droo O TE 199 Hourly Employee Payslip Sample: This application calculates the salary of an employee based on their employnent status Enter the nane of the enployee : Salnan Nazir Enter the enployee type CH for hourly. S for salaried) : H Enter the number of hours worked : 120 Enter the hourly rate : 45 Payslip Salman Nazir Gross Pay : : $5.198.89 Contributions Health Insurance : $380.80 Retirenent Plan (6x) : $324.88 Pay After Contributions : $4,226.89 Federal Tax (15%) : $216.48 State Tax (5%) : $238.80 Net Pay : $3,820.88 . Technical Specifications The application must contain your name and student number as well the purpose of the program in the top section of each class file (as comments). You should explain your code by providing adequate commenting. You will need two class files for this application. One will be called Payroll and the other PayrollTest. The program must ask for the name, and the employee type. The name and employee type should be stored as instance variables with appropriate properties. You will also need another instance variable to store the Gross Pay of the employee. The value for this variable will depend on the type of employee. If the employee is an hourly employee it should ask for the number of hours worked, and the hourly rate for the employee to calculate the gross pay. . DO Any Payot Paytolt Mantrinelas 1 2 inspace Payroll de cinell 1 static void Main(string) 11 hu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
