<html>
<head>
<title>Project 3</title>
</head>
<body>
<script>
//Chao Li. October 4, 2007
var greeting = "";
var output = "";
var questionOne = "";
var answerOne = "protein";
var questionTwo = "";
var answerTwo = "chromatin";
var questionThree = "";
var answerThree = "phospholipid";
var questionFour = "";
var answerFour = "cytoplast";
var questionFive = "";
var guessFive = "lipids";
questionOne = prompt ("What does ribosome make?\n A. lipids\n B. membranes\n C. fatty acid\n
D. protein");
switch (questionOne)
{
case "A":
alert ("You suck.");
output--;
break;
case "B":
alert ("Study more.");
output--;
break;
case "C":
alert ("Are you kidding.");
output--;
break;
case "D":
alert ("That is the correct answer.");
output++;
break;
defult:
alert ("Guess you can't read.");
}
questionTwo = prompt ("What is inside the neuleolus?\n A. rRNA\n B. chromatin\n C.
cisternae\n D. ribosome");
switch (questionTwo)
{
case "A":
alert ("You suck.");
output--;
break;
case "B":
alert ("That is the correct answer.");
output++;
break;
case "C":
alert ("Are you kidding.");
output--;
break;
case "D":
alert ("No..");
output--;
break;
defult:
alert ("Guess you can't read.");
}
questionThree = prompt ("What is the plasma membrane made of?\n A. phospholipid\n B. tublin
dimer\n C. glycoproteins\n D. cellulos");
switch (questionThree)
{
case "A":
alert ("That is the correct answer.");
output++;
break;
case "B":
alert ("You sucks.");
output--;
break;
case "C":
alert ("Are you kidding.");
output--;
break;
case "D":
alert ("No..");
output--;
break;
defult:
alert ("Guess you can't read.");
}
questionFour = prompt ("What is the space between the plasma membrane and the nucleus\n A.
cytoplast\n B. cytoplasma\n C. intergal\n D. intercellular space");
switch (questionThree)
{
case "A":
alert ("That is the correct answer.");
output++;
break;
case "B":
alert ("You sucks.");
output--;
break;
case "C":
alert ("Are you kidding.");
output--;
break;
case "D":
output--;
alert ("No.");
break;
defult:
alert ("Guess you can't read.");
}
questionFive = prompt ("What does the smooth ER make\n A. proteins\n B. ribosomes\n C.
chromosome\n D. lipids");
switch (questionFive)
{
case "A":
alert ("No.");
output--;
break;
case "B":
alert ("You sucks.");
output--;
break;
case "C":
alert ("Are you kidding.");
output--;
break;
case "D":
alert ("That is the correct answer");
output++;
break;
defult:
alert ("Guess you can't read.");
}
alert ("Your total score is: " +output+ ".");
</script>
</body>
</html>