var userchoice:string
var score:=0
%First Question
loop
put "What Year Did The September 11th Attacks Occur On?"
put "a) 2000"
put "b) 2001"
put "c) 2002"
put "d) 2003"
get userchoice
if userchoice = "a" or userchoice = "A" then
score:= score - 1
put "Sorry, that is incorrect, Your Current Score is ", score
exit
elsif userchoice = "b" or userchoice = "B" then
score:= score + 1
put "Yes, you are correct, Your Current Score is " , score
exit
elsif userchoice = "c" or userchoice = "C" then
put "Sorry, that is incorrect, Your Current Score is ", score
exit
elsif userchoice = "d" or userchoice = "D" then
put "Sorry, that is incorrect, Your Current Score is ", score
exit
else
put "Entry is invalid, try again"
end if
end loop
%End Of First Question
%Second Question
loop
put "What Is The Ice Cubes Real Name?"
put "a) Jajuan"
put "b) Tywan"
put "c) O'Shea Jackson"
put "d) Dameane"
get userchoice
if userchoice = "a" or userchoice = "A" then
score:= score - 1
put "Sorry, that is incorrect, Your Current Score is ", score
exit
elsif userchoice = "b" or userchoice = "B" then
put "Sorry, that is incorrect, Your Current Score is ", score
exit
elsif userchoice = "c" or userchoice = "C" then
score:= score + 1
put "Yes, you are correct, Your Current Score is " , score
exit
elsif userchoice = "d" or userchoice = "D" then
put "Sorry, that is incorrect, Your Current Score is ", score
exit
else
put "Entry is invalid, try again"
end if
end loop
%End Of Second Question |