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)

Grading Criteria Points
15
A folder created in the site root labeled "lab6" 1
Temperature inputs are checked for validity. 3
Function FtoC 4
Table printed using a loop that calls function FtoC. 3
Temperatures display to one decimal point (tenths). 1
No spelling errors. 1
Assignment in on time. 2