All pastes #919865 Raw Edit

Anonymous

public text v1 · immutable
#919865 ·published 2008-02-27 01:27 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>challengetax.html</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
// **** insert code here ****
// subTotal is the total amount before taxes are added
subTotal=prompt("What is the subtotal?");
// taxRate is the tax rate 
taxRate=0.0575;
// taxAmount is the amount of tax
taxAmount=subTotal*taxRate;
// total is the total the user has to pay
total=taxRate*taxAmount;

</script>
</body>
</html>