Make your own free website on Tripod.com
SWAT My Welcome Of Doom to you!!!
  Javascript Actionscript Blog
  <script>
//Math
//David Fang, 10/07
var i=0;
var num1=0;
var num3=0;
var calculations=0;
var guess=0;
alert(" You will be tested on some very seemingly problems");
for(i=0;i<5;i++)
{
num1=Math.floor(Math.randon() *100) +1;
num3=Math.floor(Math.random() *100) +1;
calculations=num1 * num3;
while(calculations!=guess)
{
guess=prompt("What is " +num1 + " * " + num3 + " ? ");
if(calculations!=guess)
{
alert("You can't even multiply? And you used a calculator?!! You need to go back to kindergarten!!")
}
}
}
alert("Nice job. Well done. You used your brain");
</script>

Links

1. SLHS

2. SLHSXC

3. JMMS

Contact me

Class links

Computer Science

Five Classmates

1. Julio Maravilla

2. Norman Duong

3. Huy Vo

4. Titus Green

5. Jack Li

 
 
 
 
 
 
 
 
Home Product Contact order