Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i am trying to use this fuction in library file income.js , to use the taxes htm

ID: 3922130 • Letter: I

Question

i am trying to use this fuction in library file income.js , to use the taxes html pager to load the library and calculuate the income tax,


{
var number;
function Icometace(income, itemized)
// Assynes: income .=0, itemzed .=0
// Returns: flat tax (13%) due after deductions
{

var deduction, taxableIcome, total tax;

deduciton= Math.max(itermized, 4150):
taxableIncome = Math.max(income - debuction, o);
toatltax = 0.13*tableTincome

return totaltax;
}


<html>
<head>
<title> ESP Test </title>
<script type="text/javascript">

{
var number;
function Icometace(income, itemized)
// Assynes: income .=0, itemzed .=0
// Returns: flat tax (13%) due after deductions
{

var deduction, taxableIcome, total tax;

deduciton= Math.max(itermized, 4150):
taxableIncome = Math.max(income - debuction, o);
toatltax = 0.13*tableTincome

return totaltax;
}



}
</script>
</head>

<body>
<div>
<h2>ESP Test</h2>
<p>
Think of a number between 1 and 4, then click the button to see
if you were right.
</p>
<input type="button" value="income 100000.00">
<input type="button" value="income 42500.00">
<input type="button" value="income 13267.45">

<hr>
<div id="outputDiv"></div>
</div>
</body>
</html>

Explanation / Answer

<script type="text/javascript">

{
var number;
function Icometace(income, itemized)
// Assynes: income .=0, itemzed .=0
// Returns: flat tax (13%) due after deductions
{

var deduction, taxableIcome, total tax;

deduciton= Math.max(itermized, 4150):
taxableIncome = Math.max(income - debuction, o);
toatltax = 0.13*tableTincome

return totaltax;
}


<html>
<head>
<title> ESP Test </title>
<script type="text/javascript">

{
var number;
function Icometace(income, itemized)
// Assynes: income .=0, itemzed .=0
// Returns: flat tax (13%) due after deductions
{

var deduction, taxableIcome, total tax;

deduciton= Math.max(itermized, 4150):
taxableIncome = Math.max(income - debuction, o);
toatltax = 0.13*tableTincome

return totaltax;
}



}
</script>
</head>

<body>
<div>
<h2>ESP Test</h2>
<p>
Think of a number between 1 and 4, then click the button to see
if you were right.
</p>
<input type="button" value="income 100000.00">
<input type="button" value="income 42500.00">
<input type="button" value="income 13267.45">

<hr>
<div id="outputDiv"></div>
</div>
</body>
</html>