Exercise by:
Nana Ama Frimpong
22 Years Old
Ridge Church School
Read / Add Comments
NanaAma:JavaScript Lesson3: Exercise

CODERS MEETING
Saturday 1st February , 2014.
Year 2 Session 5
Exercise 4


COURSE: CODING
COURSE LESSON: Java Script
ACTIVITY:Making A Number Times Table Using JavaScript While Loops

Intructions
1.In the first column; Using JavaScript if and else statements only,create a program that displays the following statements when the weather value changes:
a. If the weather is less than or equal to 20 degrees, the program should display "It is cold".
b. If the weather is greater than 20 degrees but less than 32 degress,the program should display "It is warm".
c. If the weather is greater than 32 degrees,the program should display "It is hot".
Use the variable var weather to represent the weather value.
In the second column;Using JavaScript while loop and if statement only, create a program that only displays factors of 9 between 1 and 400. In the third column;Using JavaScript while loop and if statements only,create a 16 times table from 1 to 300 and display as follows;
16*1=16
16*2=32
Etc...
77