Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Visual Studio - C#, Build a Windows application that allows users to input basic employee information to calculate the employee's pay amount. You should

Using Visual Studio - C#, Build a Windows application that allows users to input basic employee information to calculate the employee's pay amount.

You should also display totals back to the user for the following information:

Create a form that allows the user to enter the following information. (Hint: If you want to store properties and behaviors together, how would you accomplish this?)

Name (First and Last)

Hourly Rate

Hours Worked in the Pay Period

The user should be able to input this information for each employee.

However, the application won't perform the calculations until the user enters Submit. (Hint: How would you store these objects?)

Once the user clicks the "Submit" button, the application calculates the information for all employees and outputs the following information back to the user for each employee. (Hint: What type of loop would be best to iterate through multiple objects of the same type?)

Name

Gross Pay

Net Pay

SS Withheld Medicare

Withheld State Income Tax

Withheld Federal Income Tax

Withheld Total Gross Pay

Total Net Pay

Total SS Withheld

Total Medicare Withheld

Total State Income Tax Withheld

Total Federal Income Tax Withheld

Regardless of the format you choose, make sure the individual fields are correctly formatted. For example, if the field contains currency information, you must display it using a dollar sign and the correct decimal places.

Use the following calculations.

Calculate Medicare at 1.45%.

Calculate Social Security at 6.2%.

In addition, include the following information in your calculations.

If an employee makes between 0 and $500, the state tax rate is 2%, and the federal tax rate is 5%.

If an employee makes between $500 and $999.99, the state tax rate is 4%, and the federal tax rate is 10%.

If an employee makes between $1,000 and $1,499.99, the state tax rate is 6%, and the federal tax rate is 15%.

If an employee makes between $1,500 and $1,999.99, the state tax rate is 6%, and the federal tax rate is 20%.

If an employee makes between $2,000 and $2,999.99, the state tax rate is 6%, and the federal tax rate is 25%.

If an employee makes more than $3,000, the state tax rate is 6%, and the federal tax rate is 30%.

Example: An employee makes $25 per hour and works 80 hours for the pay period. This means the gross pay is $2,000. The federal tax withheld is $2,000 x .25 = $500. The state tax withheld is $2,000 x .06 = $120. The social security withheld is $2,000 x .062 = $124. The Medicare withheld is $2,000 x .0145 = $29. The total net for the employee is $2,000 - $500 - $120 - $124 - $29 = $1,227.

You need this information for each employee the user enters.

Your application should use good design principles, be user-friendly, prevent errors from occurring, and provide useful feedback if a user enters incorrect information.

Note: These tax calculations are not accurate per current tax requirements but are used for the purposes of this class. Also, you do not need to factor any employer paid taxes such as for Social Security and Medicare. The application must calculate the necessary payroll taxes and return the net amount to pay each employee.

Build a Windows application that follows good design principles. Include the necessary error-handling information to avoid any potential issues that the user could experience.

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago