The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 137 Weeks Ago, 5 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Develop the Income Tax Calculator
In this exercise, you’ll use nested if statements and arithmetic expressions to calculate the income tax that is owed for a taxable income amount. When a user enters his taxable income and clicks the Calculate button, this application will display the federal income tax owed.
This is the 2015 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 |
$9,225 |
$0 plus 10% |
$0 |
|
$9,225 |
$37,450 |
$922.50 plus 15% |
$9,225 |
|
$37,450 |
$90,750 |
$5,156.25 plus 25% |
$37,450 |
|
$90,750 |
$189,300 |
$18,481.25 plus 28% |
$90,750 |
|
$189,300 |
$411,500 |
$46,075.25 plus 33% |
$189,300 |
|
$411,500 |
$413,200 |
$119,401.25 plus 35% |
$411,500 |
|
$413,200 |
|
$119,996,25 plus 39.6% |
$413,200 |
exercises_extrach04income_tax
Note that the JavaScript file has some starting JavaScript code for this application, including the $ function and an onload event handler that attaches a function named processEntry to the click event of the Calculate button.