Im not sure this is the right forum but its the closest i could find. Anyways i have a script that is supposed to calculate the volume of a cone. I tried it out and it does not work. Can someone please read over this script and see if anyone can find the error. Here is the script...
<html> <head>
<title>Cone Volume</title>
<script language="JavaScript">
function convert(cal) { document.cone_cal.volume.value="" var height = parseFloat(document.cone_cal.height.value) var radius = parseFloat(document.cone_cal.radius.value) var volume = 1.0/3.0 * 3.14* radius * radius * height document.cone_cal.volume.value = volume }
JavaScript+XHTML is case sensitive. So saying document.cone_cal.height is different than saying document.cone_cal.Height. Also, although this isn't really important, you can say Math.PI instead of 3.14.