GR 11 work, bleach quiz
Author |
Message |
Mr.gould
|
Posted: Thu Dec 06, 2007 9:36 am Post subject: GR 11 work, bleach quiz |
|
|
this is my GR 11 comp class work, its kind bad, but try it out
MR.gould
put "THE ULTIMATE BLEACH QUIz!!!!"
var name : string
var number : real := 0
var x, y : int
var key : string (1)
var total : real := 0
var letter : string
put "Please enter your first and Last Name"
get name : *
put "Hit any key to countine"
getch (key)
cls
put " HEY ", name, " U BETTER NOT BE SCARED."
put " ARE YOU READY FOR THIS ?"
put " Hit any key to countine"
getch (key)
cls
put " question 1"
put " what is ICHIGO's father"
put " 1. docter"
put " 2. Sciencetist"
put " 3. Ultra strong shinigami"
put " 4. cab driver"
get number
if number = 3 then
put " you are correct"
total := total + 1
end if
if number > 3 then
put " you are wrong"
put " the correct answer is 3"
end if
put " Hit any key to countine"
getch (key)
cls
put " Question 2"
put "Who was the first Captain that iChigo fought in the Soul Society"
put "1. Urahara Kisuke "
put "2. Kenpachi Zaraki "
put "3. Gin Ichimaru "
put "4. Renji Abarai "
get number
if number < 2 then
put " that is wrong"
put " the corrects answer is 2"
end if
if number = 2 then
put " you are correct"
total := total + 1
end if
if number > 2 then
put " you are wrong"
put " that correct answer is 2"
end if
put " Hit any key to countine"
getch (key)
cls
put " Question 3"
put " WHat is the name of Ichigo's sword??"
put " 1. Kyoka Suigetsu"
put " 2. Senbonzakura Kageyoshi "
put " 3. Hihio Zabimaru"
put " 4. Zangetsu "
get number
if number = 4 then
put " that is correct"
total := total + 1
end if
if number < 4 then
put " that is wrong"
put " the correct answer is 4"
end if
put " Hit any key to countine"
getch (key)
cls
put " Question 4"
put " what is Byakuya Kuchiki's bankai is the same as _________ ?? "
put " 1. Garra's sand "
put " 2. Rukia's bankai"
put " 3. chidori"
put " 4. rasengan"
get number
if number = 1 then
put " you are correct"
total := total + 1
end if
if number > 1 then
put " you are wrong"
put " the correct answer is 1"
end if
put " Hit any key to countine"
getch (key)
cls
put " question 5"
put " Who is the evil one????"
put "1. Kenpachi Zaraki "
put "2. Sosuke Aizen "
put "3. Gin Ichimaru "
put "4. Kisuke Urahara "
get number
if number = 2 then
put " that is corect"
total := total + 1
end if
if number < 2 then
put " you are wrong"
put " the correct answer is 2"
end if
if number > 2 then
put " you are wrong"
put " the correct answer is 2"
end if
put " Hit any key to countine"
getch (key)
cls
put " THANK YOU FOR PLAYING MY ULTIMATE BLEACH QUIz!!!!!"
put " you score is ", total
put "NOW ", name, " Go get a life instead of watch T.V. all day long."
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Euphoracle
|
Posted: Thu Dec 06, 2007 3:49 pm Post subject: RE:GR 11 work, bleach quiz |
|
|
Poor use of procedures (or structure). Code tags would be beneficial. Why are you sassing the person playing it anyway? That's like the one thing they teach you in highschool.
I really hope this is a troll/joke thread.
|
|
|
|
|
|
Zampano
|
Posted: Thu Dec 06, 2007 4:18 pm Post subject: Re: GR 11 work, bleach quiz |
|
|
Why this:
code: | if number > 3 then
put " you are wrong"
put " the correct answer is 3"
end if |
Why do nothing if the persons guesses below three?
|
|
|
|
|
|
HeavenAgain
|
Posted: Thu Dec 06, 2007 5:21 pm Post subject: RE:GR 11 work, bleach quiz |
|
|
the point is not below or above 3, the point is, the answer is NOT 3, therefore the best boolean expression for this is,
code: | if answer not = correctOne then
put "you are wrong"
else
put "you are right" |
and that code be made into a procedure/method to shorten your game code
|
|
|
|
|
|
Mr.gould
|
Posted: Thu Dec 06, 2007 8:55 pm Post subject: Re: GR 11 work, bleach quiz |
|
|
well, i've only beening learning about turing for like a week, but if u guys can help me on any to make the quiz better, plz do. thank you. this is also my first progarm
|
|
|
|
|
|
HeavenAgain
|
Posted: Thu Dec 06, 2007 9:37 pm Post subject: RE:GR 11 work, bleach quiz |
|
|
for a week this is pretty good stuff, have a look around in the turing tut section, main things you might want to learn are: the loops, procedure/methods, array, and some extra fancy stuff, make good use of them and it will make your life much easier
|
|
|
|
|
|
bashandslash
|
Posted: Fri Dec 07, 2007 9:34 am Post subject: Re: GR 11 work, bleach quiz |
|
|
For 1 week this is okay but not as good. Fei yang, you should do better next time if you want a good mark. lulz.
|
|
|
|
|
|
Sean
|
Posted: Fri Dec 07, 2007 10:22 am Post subject: Re: GR 11 work, bleach quiz |
|
|
code: |
put " question 1"
put " what is ICHIGO's father"
put " 1. docter"
put " 2. Sciencetist"
put " 3. Ultra strong shinigami"
put " 4. cab driver"
get number
if number = 3 then
put " you are correct"
total := total + 1
end if
|
First off, The question, is just wrong, state what you mean in each question.
Documentation, Procedures and Proper format is needed.
Just to let you know.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mr.gould
|
Posted: Sun Dec 09, 2007 1:32 pm Post subject: Re: GR 11 work, bleach quiz |
|
|
this is the upgraded version, hope u like it
Description: |
save everything into one file |
|
Download |
Filename: |
Bleach quiz.rar |
Filesize: |
3.89 MB |
Downloaded: |
633 Time(s) |
Description: |
save everything into one file |
|
Download |
Filename: |
Bleach quiz.rar |
Filesize: |
3.89 MB |
Downloaded: |
156 Time(s) |
|
|
|
|
|
|
|
|