|
<script>
//Perimeter and Area
//By David Fang, 09/07
//Sept 28, 2007
//Hello Mr. Fang
var width;
var height;
var perimeter;
var area;
alert("I am going to activate the rectangle and foretell math");
width=prompt("What is the width of the rectangle?");
height=prompt("What is the height of the rectangle?");
width=eval(width);
height=eval(height);
area=width * height;
perimeter= width + height;
alert("The perimeter is going to be.. " + perimeter + ".");
alert(" The area of the rectangle is " + area + ".");
</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
|