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_temp - 32) * .55
The only tip/clue I have is to use
var tempInCelcius = (document.Converter.fahrenheit.value - 32) * .55;
var tempInFahrenheit = (document.Converter.celcius.value * 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>Convert Temperature</title>
<script language="JavaScript">
<!--Hide from old browsers
function tempConv() {
var TempInCelcius = document.Converter.fahrenheit.value - 32) * .55;
var TempInFahrenheit = document.Converter.celcius.value * 1.8) + 32;
?????? - I cannot get the calc right????????
//-->
</script>
</head>
<body>
<h1>Convert Temperature</h1>
<form name=data>
<p><strong>Enter 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=tempConv()>
<br>
<p><strong>Enter the temperature in Celcius</strong></p>
<input type="text" name="fahrenheit_in" size="10" align="left">
<input type="Button" align="left" value="Convert to Fahrenheit" onClick="tempConv()">
</body>
</html>