Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the 201x table for the federal income tax on individuals that you should use for calculating the tax: Taxable income Income tax Over

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

Taxable income

Income tax

Over

But not over

Of excess over

$0

$8,700

$0 plus 10%

$0

$8,700

$35,350

$870 plus 15%

$8,700

$35,350

$85,650

$4867 plus 25%

$35,350

$85,650

$178,650

$17,442 plus 28%

$85,650

$178,650

$388,350

$43,482 plus 33%

$178,650

$388,350

$112,683 plus 35%

$388,350

Start a new project named TaxCalculator.

  1. 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.
  2. Create an event handler for the Click event of the Exit button that closes the form.
  3. Step 1 calculate the tax owed in bntCalculate_Click event handler. This code should provide for decimal entries, and you can assume that the user will enter valid decimal values. However, do better than the screenshot above and actually display the results as currency. Note: The amount of Federal Income Tax owed is usually a whole dollar amount, and the government doesnt round up rather, they convert it to an integer, effectively losing the cents. That is the reason for the amount listed in the screenshot.

Step 2 - Code the declaration for a private method named CalculateTax that receives the income amount and returns the tax amount. Create a statement in the btnCalculate_Click event handler that declares the tax variable which, in turn, gets its value by calling this CalculateTax method.

  1. Create an event handler that clears the Income Tax Owed text box if the user changes the value in the Taxable Income text box.4
  2. Test the application to be sure it works correctly.

*Please do in C#*

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago