Make your own free website on Tripod.com
 
Home
ActionScript
Blog

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<script>
// manyTemps
// Catherine Casuat 10-1-07
// Demonstrates the if/else structure

var temp = 0;

temp = Math.floor(Math.random() * 100); + 1;
alert ("It's " + tempt + " degrees outside. ");

if (temp < 70){

if (temp < 30){
alert("Wear a jacket!!");
} else {
alert(" Wear a sweater!!");
} //end 30 if
} else {
if (temp > 85){
alert("Wear a bathing suit!!");
} else {
alert("Wear short sleeves.");
} // end 85 if
} // end 70 if

</script>