please help me with html?

  • Thread starter Thread starter GlupayaDevochka
  • Start date Start date
G

GlupayaDevochka

Guest
I need help putting this all into one... I have completed it in 2 sections but can not seem to get it all together.

Here is what I have so far, just can not seem to get it to work together:

<input type= name= size= value=Enter Employee's Last Name />
<input type= name= size= value=Enter Employee's First Name /> <br />
<label>Hourly<input type= name=Pay Status value= /> </label>
<label>Weekly<input type= name=Pay Status value= checked= /></label>
<br />
<input type= name= size= value=Enter Pay Rate />
<input type= name= size= value=Enter Hours Worked />
<input type= name= size= value=Gross Pay />
<br />
<input type= name= size= value=Deductions Rate /> <select name=Dduction Rate>
<option>.28</option>
<option>.25</option>
<option>.23</option>
<option>.20</option>
</select>

<html>
<head>
<title></title>
<script type=>

function calculate(theForm) {

var hours = parseFloat(theForm.txtHours.value);
var payRate = parseFloat(theForm.txtPay.value);
var taxRate = parseFloat(theForm.txtTax.value);
var gross = calcGross(hours, payRate);
var tax = calcTax(gross, taxRate);
var net = calcNet(gross, tax);
theForm.txtNet.value = net;
return true;
}

function calcGross(hours, payRate)
{
var gross = hours * payRate;
return gross;
}
function calcTax(gross, taxRate)
{
var tax = gross * taxRate;
return tax;
}
function calcNet(gross, tax)
{
var net = gross - tax;
return net;
}

</script>
</head>
<body>
<p><strong>Payroll Calc</strong></p>
<p>
<form>
Hours: <input type= id= name=>

Pay Rate: <input type= id= name=>

Tax Rate: <input type= id= name=>

Net Pay: <input type= id= name=>

<input type= value=Calculate Net Pay onclick= id= name=>
<input type= value= id= name=>
</form>
</p>
</body>
</html>__________________



Below is the specifications of what is to be included on this.......



INPUT:
1. Text box to enter Employee’s Last Name
2. Text box to enter Employee’s First Name
3. Radio buttons for Pay Status (Hourly or Weekly)
4. Text box to enter Pay Rate
5. Text box to enter Hours Worked
6. Select Object to select Deduction Rate from a drop-down list (.28, .25, .23, .20)

PROCESSING:
1. Calculate Weekly Gross Pay.
2. Calculate Deduction Amount.
3. Calculate Weekly Net Pay.

OUTPUT:
Create a button that when clicked, the following displays output in text boxes.
1. Gross Pay
2. Deduction Amount
3. Net Pay
Create a button at the bottom of the form that when clicked will clear all data from the form to prepare for the next employee.
 
Back
Top