Question: the last picture is rhe program. we use visual studio Problem Description: WVU needs a payroll application, which has the capability to calculate and print

the last picture is rhe program. we use visual studio  the last picture is rhe program. we use visual studio 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

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 ($300) and retirement plan (6%). The federal income tax (15%) 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 application's output is similar or better than the screenshots given below. Salaried Employee Payslip Sample: This application calculates the salary of an enployee based on their employnent status Enter the nane of the employee : Jose Sartare 1P Enter the enployee type CH for hourly. S for salaried) : S Payslip Jose Sartarelli Gross Pay : $4,000.co Contributions Health Insurance : $300.00 Retirement Plan (6%) : $240.00 Pay After Contributions : $3,460.00 Federal Tax (15%) : $519.00 State Tax (5%) : $173.00 Net Pay : $2.768.08 Styles Paragraph Hourly Employee Payslip Sample: This application calculates the salary of an employee based on their employnent status CI Enter the nane of the employee : Salman Nazir Enter the employee type CH for hourly, S for salaried) : H Enter the nunber of hours worked : 120 Enter the hourly rate : 45 Payslip Salman Nazir Gross Pay : $5,490.00 Contributions Health Insurance : $300.00 Retirement Plan (6%) : $324.00 Pay After Contributions : $4,276.00 Federal Tax (15%) : $716.48 State Tax (5%) : $238.80 Net Pay : $3,820.80 . 1 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. The program must then process the information and output it as shown in the samples above. All processing of the Net Pay will be done by a method in the Payroll class. . 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. The program must then process the information and output it as shown in the samples above. All processing of the Net Pay will be done by a method in the Payroll class. All output must be printed by a method in the Payroll class. The output must print: o Payslip Header The Gross Pay amount (rounded to two decimal places) o The contributions to health and retiremeht plans and the federal and state tax amounts. o And finally, the net pay amount (rounded to two decimal places) The code must be in line with the programming standards covered in class. The code must compile and the output should be very similar to that shown in the screenshots above. . O . . Payroll Payroll 1 using System; 3 namespace Payroll { 5 O references class Payroll { Oreferences static void Main(string[] args) 1 7 8 99 2 1 1 3 1 No issues found e Solution X 0 Errors A Warnings 0 0 of 1 Message My Build + IntelliSense Code Description List Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!