Coding an Income Tax Function
Not what you're looking for?
Create a Web page named taxes.html and enter the Income Tax function into the HEAD (enclosed in SCRIPT tags). In the BODY of the page, prompt the user to enter values representing his or her income and itemized deduction. The page should call the Income Tax function and then display the amount of tax owed.
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
the given function for the income calculator
function IncomeTax(income, itemized)
// Assumes: income >= 0, itemized >= 0
// Returns: flat tax (13%) due after deductions
{
var deduction, taxableIncome, totalTax;
deduction = Math.max(itemized, 4150);
taxableIncome = Math.max(income - deduction, 0);
totalTax = 0.13*taxableIncome
return totalTax;
}.
Purchase this Solution
Solution Summary
This solution provides an .html code for an income tax function (see attachment).
Purchase this Solution
Free BrainMass Quizzes
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.