Create a library file named income.js that contains the definition of the IncomeTax function from Figure 9.10.

Question:

Create a library file named income.js that contains the definition of the IncomeTax function from Figure 9.10. Then, create a Web page named taxes.html that loads the income.js library and uses the IncomeTax function to calculate and display a person's income tax. The page should have text boxes where the person's income and itemized deductions are entered, and a button for initiating the calculation. When the button is clicked, a function should be called to access the income and itemized deduction amounts, call the IncomeTax function, and display the calculated tax in a page division.

Use your page to determine the amount a person would owe with:

income = 100000.00 itemized = 12017.50

income = 42500.00 itemized = 8900.99

income = 13267.45 itemized = 14000.00

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: