Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# C# C# Build a Windows application that allows users to input basic employee information to calculate the employee's pay amount. You should also display

C# C# 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

You can use any display format you would like. You can output the required information to a large label or textbox, or you can research advanced techniques such as grids. Since you haven't used any of the advanced display features in Windows forms, you are not expected to use them. 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%.

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

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago