<script
language="javascript"
type="text/javascript">
function
a_times_b(form)
{
a
=
eval(form.a.value);
b
=
eval(form.b.value);
c
=
1
/
2
*
a *
b *
b;
form.c.value
=
c;
}
function
c_div_b(form)
{
c
=
eval(form.c.value);
b
=
eval(form.b.value);
a
=
c /
(b
*
b);
form.a.value
=
a *
2;
}
function
c_div_a(form)
{
c
=
eval(form.c.value);
a
=
eval(form.a.value);
b
=
c /
(1
/
2
*
a);
form.b.value
=
Math.sqrt(c
/
(1
/
2
*
a));
}
</script>
<table
width=300
border=0>
<form
name="fromcal">
<tr>
<td><center>MASS
(kg)</td>
<td><center>VELOCITY
(m/s)</td>
<td><center>KINETIC
ENERGY (joules)</td>
</tr>
<tr>
<td><input
type=number
name="a"
value="
" size=10></td>
<td><input
type=number
name=b
value="
" size=10></td>
<td><input
type=number
name="c"
value="
" size=10></td>
</tr>
<tr>
<td><input
type=button
value="Find
Mass"
onClick="c_div_b(this.form)"></td>
<td><input
type=button
value="Find
Velocity"
onClick="c_div_a(this.form)"></td>
<td><input
type=button
value="Find
KE"
onClick="a_times_b(this.form)"></td>
</tr>
</form>
</table>