# Not sure whats wrong with my code HELP PLEASE?!?!

I cant figure out what I am doing wrong in my code can anyone help me out???

## Class Average Calculator

 Homework Labs Midterm Finals Your Average

Ã?Â

November 23, 2010 at 5:18 PM

Hi Friend,

Try the following code:

```<html>

<script type="text/javascript">
{
var hw, lab, midt, fin, avg;
avg = hw*0.25 + lab*0.20 + midt*0.25 + fin*0.30 ;

var r = parseFloat(avg);
if (r >= 90)
else if (r <= 89 || r >= 80)
else if (r <= 79 || r >=70)
else if (r <= 69 || r >=60)
}
</script>

<body> </p>

<h2>Class Average Calculator</h1> </p>

<table>
<tr>
<td>Homework</td>
<td><input type="text" name="txthw" size="10"
value="" /></td>
</tr>
<tr>
<td>Labs</td>
<td><input type="text" name="txtlab" size="10"
value="" /></td>
</tr>

<tr>
<td>Midterm</td>
<td><input type="text" name="txtmidt" size="10"
value="" /></td>
</tr>

<tr>
<td>Finals</td>
<td><input type="text" name="txtfin" size="10"
value="" /></td>
</tr>

<tr>
<td><input type="text" name="txtAV" size="10"
value="" /></td>
</tr>
</table>

<input name="txtResult" size="36" type="text"> </p>

</form>
</body>
</html>
```

Thanks

November 23, 2010 at 5:24 PM

Thank you i eventually figured out i had the signs reversed :/