Lab 8: Conditional Statements
Write a program that prompts the user for the temperature in Fahrenheit. The program should:
- Verify that the user input is a number and that it lies between -100F and 200F. If the input is incorrect, use the alert() function and reprompt for the correct input.
- Convert the temperature to Celsius. The conversion is C=(5/9)*(F-32).
- Output the results as follows. If the user enters 33 degrees the output shoud be:
The temperature is 33 degrees farenheit, 0.555555555556 degrees celsius. That is 1 degree(s) above freezing in farenheit and 0.555555555556 degrees above zero in celsius.
The output should be analogous for a temperature below freezing.
Save your file as lab8.html.