MMDT1022 HTML II and Javascript
Week 6
Week 6 Read chapter 3 from page 50 to the end in the JavaScript textbook. This 2nd part of the chapter is how to write functions. Also read chapter 20 which shows various debugging techniques. |
Lab 6 Your instructor will show you an example to follow. Here is a screen snapshot. Using a loop, create a Fahrenheit to Celsius table. Prompt the user for Fahrenheit low temperature and Fahrenheit high temperature. Check that the low and high temperatures are valid. The high temperature obviously should be greater than the low temperature. Create a function "FtoC" that accepts a Fahrenheit temperature for a parameter and that returns the Celsius temperature. The formula is Celcius = 5/9 * (Fahrenheit - 32)
|