I am absolutely stuck with this one.
I have to create a temperature conversion calculator that rounds the resulting temperature to the nearest whole number & vice versa. The result must be displayed in a window alert. The given formula is (Fahrenheit_tem p - 32) * .55
The only tip/clue I have is to use
var tempInCelcius = (document.Conve rter.fahrenheit .value - 32) * .55;
var tempInFahrenhei t = (document.Conve rter.celcius.va lue * 1.8) + 32
I have tried, deleted, tried and deleted again. I am so frustrated and feeling suicidal that I am just not grasping the concept.
PLEASE HELP!
<html>
<head>
<title>Conver t Temperature</title>
<script language="JavaS cript">
<!--Hide from old browsers
function tempConv() {
var TempInCelcius = document.Conver ter.fahrenheit. value - 32) * .55;
var TempInFahrenhei t = document.Conver ter.celcius.val ue * 1.8) + 32;
?????? - I cannot get the calc right????????
//-->
</script>
</head>
<body>
<h1>Convert Temperature</h1>
<form name=data>
<p><strong>Ente r the temperature in Fahrenheit</strong></p>
<input type="text" name="Celcius" size="10" align="left">
<input type="Button" align="left" value="Convert to Celcius" onClick=tempCon v()>
<br>
<p><strong>Ente r the temperature in Celcius</strong></p>
<input type="text" name="fahrenhei t_in" size="10" align="left">
<input type="Button" align="left" value="Convert to Fahrenheit" onClick="tempCo nv()">
</body>
</html>