Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exercise you will create a Visual C# program using a windows forms app, you will use nested if statements and arithmetic expressions to

In this exercise you will create a Visual C# program using a windows forms app, you will use nested if statements and arithmetic expressions to calculate the federal income tax that is owed for a taxable income amount entered by the user.

image text in transcribed

This is the 2015 table for the federal income tax on individuals that you should use for calculating the tax:

image text in transcribed

1. Start a new project named TaxCalculator.

2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown above. When the user presses the Enter key, the Click event of the Calculate button should fire. When the user presses the Esc key, the Click event of the Exit button should fire.

3. Create an event handler for the Click event of the Exit button that closes the form.

4. Create an event handler for the Click event of the Calculate button. Then, write the code for calculating and displaying the tax owed for any amount within the first two brackets in the table above. This code should provide for decimal entries, but you can assume that the user will enter valid decimal values. To test this code, use income values of 8700 and 35350, which should display taxable amounts of 870 and 4840.50.

5. Add the code for the next tax bracket. Then, if you have the time, add the code for the remaining tax brackets.

Income Tax Calculator | Taxable income: 35350 Income tax owed: 4840.50 Calculate Exit

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

11.3 Discuss laws affecting collective bargaining.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago