You are on page 1of 74

John Benedict T.

Tolledo
0510-0411-10853
09285065103
Michelle Magno-Garcia
Lecturer
0510
Gae! "e#elo$ent in %&&
'101(
)hili$$ine!
Table of Contents
Description......................................2
Specification...................................4
Program Listing.........................5-71
Testing...........................................72
Conclusion....................................73
*. "e!cri$tion
2 | P a g e
Pinoyguru is based on the game Hangaroo where you as the player will have
to guess the word. In this game, instead of you typing letter by letter to guess
the word like in the game Hangaroo, you will have to type the whole word
instead to guess it.
**. +$eci,ication
-. *n$ut +$eci,ication
answer Used for the answer to the question, it is a string.
name Used for the display of name of the player. It is a string.
level Used for choosing a level. It is a character.
password Used for entering other levels beside level . It is a string.
choice Used for answering all the yes or no questions. It is a character.
btm Used for answering if you want to go back to the main menu. It is a
character.
B. +creen "e!ign
!here will be various menus in the game. !he main menu consists of the
displayed name of the player then "tart, Help, #$it. "tart will go to a %evel
&enu where you have to choose the level. Help will go to a menu where
the instructions are. 'nd e$it will terminate the program.
3 | P a g e
%. )rogra "e!ign
!he program is well organi(ed by a series of functions used for menu.
)ne function is connected to another function for better connectivity of the
program.
". .alidation and )roce!!ing
!he data is processed by a series of inputs from the player. If the player
input something, the code will have a function corresponding to the player
input.
***. )rogra Li!ting
*include+iostream,
*include +string,
*include+stdlib.h,
using namespace std-
void main.menu/void0-
void sub.menu/void0-
void help/void0-
void game/void0-
4 | P a g e
void gameover/void0-
void level/void0-
void level1/void0-
void level2/void0-
void qe/void0-
void qe1/void0-
void qe2/void0-
void qe3/void0-
void qe4/void0-
void qe5/void0-
void qe6/void0-
void qe7/void0-
void qe8/void0-
void qe9/void0-
void qn/void0-
void qn1/void0-
void qn2/void0-
void qn3/void0-
void qn4/void0-
void qn5/void0-
void qn6/void0-
5 | P a g e
void qn7/void0-
void qn8/void0-
void qn9/void0-
void qh/void0-
void qh1/void0-
void qh2/void0-
void qh3/void0-
void qh4/void0-
void qh5/void0-
void qh6/void0-
void qh7/void0-
void qh8/void0-
void qh9/void0-
void credits/void0-
char decision-
string answer-
string name-
int level-
string password-
char choice-
int score:9-
6 | P a g e
char btm-
int $-
string tries;2<:=>!ries %eft? 1>, >!ries %eft? >, >!ries %eft? 9>@--
main/0
=
system/>color 3b>0-
main.menu/0-
return 9-
@
void main.menu/void0
=
cout ++ >AnB B B B B B B B B B B B B B B B B B B B B>-
cout ++ >AnBAtAtAtAtAtB>-
cout ++ >AnBAtAtAtAtAtB>-
cout ++ >AnBAtAtPinoyCuruDAtAtB>-
cout ++ >AnBAtAtEEEEEEEEEEAtAtB>-
7 | P a g e
cout ++ >AnBAtAtAtAtAtB>-
cout ++ >AnBAtAtAtAtAtB>-
cout ++ >AnB B B B B B B B B B B B B B B B B B B B B>-
cout ++ >AnAn Fhat is your GameH? >-
getline/cin,name0-
system/>cls>0-
sub.menu/0-
@
void sub.menu/void0
=
cout ++ >AnAnAnAnAt Felcome >++name-
cout ++ >AnAnAt " E "!'I!>-
cout ++ >AnAnAt H E H#%P>-
cout ++ >AnAnAt # E #JI!>-
cout ++ >AnAnAt Khoose your LestinyD;"MHM#<? >-
cin ,, choice-
cin.ignore/0-
switch/choice0
=
case N"N?
8 | P a g e
case NsN?
system/>cls>0-
game/0-
break-
case NHN?
case NhN?
system/>cls>0-
help/0-
break-
case N#N?
case NeN?
e$it/90-
break-
default?
cout ++ >AnAnInvalid Khoice OoolD>-
cout ++ >AnAn>-
sub.menu/0-
9 | P a g e
@
@
void help/void0
=
cout ++ >AnAnAnPinoyCuru is a game where you must guess the word.>-
cout ++ >An!here will be category of that word and some >-
cout ++ >Anletter of the word are already shown.>-
cout ++ >AnPou as the user must type the word. >-
cout ++ >An)nly three tries or it is gameover. CoodluckD>-
cout ++ >AnAnAn"tart Came;"< M Qack to &enu;&<? >-
cin ,, decision-
cin.ignore/0-
switch /decision0
=
case N&N?
sub.menu/0-
break-
case N"N?
game/0-
break-
10 | P a g e
default?
cout ++ >AnAnInvalid Khoice OoolD>-
cout ++ >AnAn>-
help/0-
@
@
void game/void0
=
cout ++ >AnAnKhoose your levelH ;,1,2<? >-
cin ,, level-
switch /level0
=
case ?
level/0-
break-
case 1?
cout ++ >AnAn #nter Password to proceed? >-
cin ,, password-
if/password::>level1pleasethanks>0
11 | P a g e
=
level1/0-
@
else
cout ++ >AnAn Frong PasswordDD>-
game/0-
break-
case 2?
cout ++ >AnAn #nter Password to proceed? >-
cin ,, password-
if/password::>letlevel2go>0
=
level2/0-
@
else
cout ++ >AnAn Frong PasswordDD>-
game/0-
default?
cout ++ >AnAn Inoorrect choiceDD>-
12 | P a g e
cout ++ >AnAn>-
game/0-
@
@
void level/void0
=
qe/0-
qe1/0-
qe2/0-
qe3/0-
qe4/0-
qe5/0-
qe6/0-
qe7/0-
qe8/0-
qe9/0-
@
void level1/void0
=
13 | P a g e
qn/0-
qn1/0-
qn2/0-
qn3/0-
qn4/0-
qn5/0-
qn6/0-
qn7/0-
qn8/0-
qn9/0-
@
void level2/void0
=
qh/0-
qh1/0-
qh2/0-
qh3/0-
qh4/0-
qh5/0-
qh6/0-
qh7/0-
14 | P a g e
qh8/0-
qh9/0-
@
void qe/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? >++score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound >-
cout ++ >AnAnAtAt Lrinks>-
cout ++ >AnAtAt .at.r>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>water>0
=
15 | P a g e
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe1/0-
@
else
=
if/scoreD:90
=
score : score E999-
@
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
@
@
gameover/0-
16 | P a g e
@
void qe1/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? >++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 1>-
cout ++ >AnAnAtAt Oood>-
cout ++ >AnAtAt r.c.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>rice>0
=
cout ++ >AnAnAtAt KorrectDD>-
17 | P a g e
score : score R 999-
qe2/0-
@
else if /answerD:>rice>0
=
if/scoreD:90
=
score : score E999-
@
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
@
@
gameover/0-
@
18 | P a g e
void qe2/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 2>-
cout ++ >AnAnAtAt !ransportation>-
cout ++ >AnAtAt c.r>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>car>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
19 | P a g e
qe3/0-
@
else if /answerD:>car>0
=

score: score E999-

cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
@
@
gameover/0-
@
void qe3/void0
=
20 | P a g e

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 3>-
cout ++ >AnAnAtAt 'nimal>-
cout ++ >AnAtAt .i.n>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>lion>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe4/0-
@
21 | P a g e
else if /answerD:>lion>0
=

score : score E999-

cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
@
@
gameover/0-
@
void qe4/void0
=

22 | P a g e
for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 4>-
cout ++ >AnAnAtAt Pet>-
cout ++ >AnAtAt do.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>dog>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe5/0-
@
else if /answerD:>dog>0
23 | P a g e
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qe5/void0
=


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
24 | P a g e
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 5>-
cout ++ >AnAnAtAt Part of !he Qody>-
cout ++ >AnAtAt .y.s>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>eyes>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe6/0-
@
else if /answerD:>eyes>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
25 | P a g e
score: score E999-
@
@
gameover/0-
@
void qe6/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 6>-
cout ++ >AnAnAtAt Komputer Part>-
cout ++ >AnAtAt m.u.e>-
26 | P a g e
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>mouse>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe7/0-
@
else if /answerD:>mouse>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
27 | P a g e
gameover/0-
@
void qe7/void0
=


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 7>-
cout ++ >AnAnAtAt "e$>-
cout ++ >AnAtAt m.l.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
28 | P a g e
cin.ignore/0-
if/answer::>male>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe8/0-
@
else if /answerD:>male>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
29 | P a g e
@
void qe8/void0
=


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 8>-
cout ++ >AnAnAtAt !oy>-
cout ++ >AnAtAt b.l.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>ball>0
=
30 | P a g e
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qe9/0-
@
else if /answerD:>ball>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qe9/void0
=
31 | P a g e


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel >-
cout ++ >AnAnAtAt Iound 9>-
cout ++ >AnAnAtAt Ieligion>-
cout ++ >AnAtAt b.b.e>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>bible>0
=
cout ++ >AnAnAtAt KorrectDD>-
cout ++ >AnAnAtAt KongrulationDD Proceed Gow to %evel 1>-
32 | P a g e
score: score R 999-
qn/0-
@
else if /answerD:>bible>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn/void0
33 | P a g e
=


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound >-
cout ++ >AnAnAtAt Kelestial Qody>-
cout ++ >AnAtAt p.a.e.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>planet>0
=
cout ++ >AnAnAtAt KorrectDD>-
34 | P a g e
score: score R 999-
qn1/0-
@
else if /answerD:>planet>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn1/void0
=

35 | P a g e

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 1>-
cout ++ >AnAnAtAt "ports>-
cout ++ >AnAtAt v.ll.y.a.l>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>volleyball>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn2/0-
@
36 | P a g e
else if /answerD:>volleyball>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn2/void0
=


for/$:9-$+:1-$RR0
37 | P a g e
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 2>-
cout ++ >AnAnAtAt Oood>-
cout ++ >AnAtAt h.t.o.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>hotdog>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn3/0-
@
else if /answerD:>hotdog>0
38 | P a g e
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn3/void0
=


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 3>-
39 | P a g e
cout ++ >AnAnAtAt !ransportation>-
cout ++ >AnAtAt .i.p.a.e>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>airplane>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn4/0-
@
else if /answerD:>airplane>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
40 | P a g e
@
gameover/0-
@
void qn4/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 4>-
cout ++ >AnAnAtAt "uperhero>-
cout ++ >AnAtAt .a.m.n>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>batman>0
41 | P a g e
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn5/0-
@
else if /answerD:>batman>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn5/void0
=
42 | P a g e


for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 5>-
cout ++ >AnAnAtAt Philippine Kity>-
cout ++ >AnAtAt .u.(o.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>que(on>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
43 | P a g e
qn6/0-
@
else if /answerD:>que(on>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn6/void0
=

44 | P a g e
for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 6>-
cout ++ >AnAnAtAt 'nime>-
cout ++ >AnAtAt .r.g.nba.l>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>dragonball>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn7/0-
@
45 | P a g e
else if /answerD:>dragonball>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn7/void0
=

for/$:9-$+:1-$RR0
=
46 | P a g e
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 7>-
cout ++ >AnAnAtAt 'nimal>-
cout ++ >AnAtAt .a.g.r.o>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>kangaroo>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn8/0-
@
else if /answerD:>kangaroo>0
=
47 | P a g e
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qn8/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 8>-
cout ++ >AnAnAtAt Komputer Part>-
cout ++ >AnAtAt p.i.t.r>-
48 | P a g e
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>printer>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qn9/0-
@
else if /answerD:>printer>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
49 | P a g e
gameover/0-
@
void qn9/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 1>-
cout ++ >AnAnAtAt Iound 9>-
cout ++ >AnAnAtAt "ickness>-
cout ++ >AnAtAt d.a.e.e.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>diabetes>0
=
50 | P a g e
cout ++ >AnAnAtAt KorrectDD>-
cout ++ >AnAnAtAt KongratulationDD Proceed Gow to the %ast %evel>-
score: score R 999-
qh/0-
@
else if /answerD:>diabetes>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
51 | P a g e
void qh/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound >-
cout ++ >AnAnAtAt Qo$er>-
cout ++ >AnAtAt .a.q.i.o>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>&anny Pacquiao>0
=
cout ++ >AnAnAtAt KorrectDD>-
52 | P a g e
score: score R 999-
qh1/0-
@
else if /answerD:>Pacquiao>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh1/void0
=

53 | P a g e
for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 1>-
cout ++ >AnAnAtAt Philippine Lelicacies>-
cout ++ >AnAtAt a.d.b.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>adobo>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh2/0-
@
54 | P a g e
else if /answerD:>adobo>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh2/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
55 | P a g e
cout ++ >AnAnAtAt Iound 2>-
cout ++ >AnAnAtAt 'nime>-
cout ++ >AnAtAt .l.a.h>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>bleach>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh3/0-
@
else if /answerD:>bleach>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
56 | P a g e
@
@
gameover/0-
@
void qh3/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 3>-
cout ++ >AnAnAtAt )ccupation>-
cout ++ >AnAtAt .n.i.e.r>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
57 | P a g e
if/answer::>engineer>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh4/0-
@
else if /answerD:>engineer>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh4/void0
58 | P a g e
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 4>-
cout ++ >AnAnAtAt Philippine "chool>-
cout ++ >AnAtAt . . .>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>ust>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh5/0-
59 | P a g e
@
else if /answerD:>ust>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh5/void0
=

60 | P a g e
for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 5>-
cout ++ >AnAnAtAt "ubSect>-
cout ++ >AnAtAt .a.h.m.t.c.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>mathematics>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh6/0-
@
else if /answerD:>mathematics>0
61 | P a g e
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh6/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 6>-
62 | P a g e
cout ++ >AnAnAtAt Ieligion>-
cout ++ >AnAtAt b.p.i.m>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>baptism>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh7/0-
@
else if /answerD:>baptism>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
63 | P a g e
@
gameover/0-
@
void qh7/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 7>-
cout ++ >AnAnAtAt Iapper>-
cout ++ >AnAtAt .m.n.m>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
64 | P a g e
if/answer::>tom cruise>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh8/0-
@
else if /answerD:>tom cruise>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
65 | P a g e
void qh8/void0
=

for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 8>-
cout ++ >AnAnAtAt Kountry>-
cout ++ >AnAtAt .u.u.l.v.a>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
cin.ignore/0-
if/answer::>yuguslavia>0
=
66 | P a g e
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
qh9/0-
@
else if /answerD:>yuguslavia>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void qh9/void0
=

67 | P a g e
for/$:9-$+:1-$RR0
=
cout ++ >AnAnAtAtAtAtAt "core? > ++ score-
cout ++ >AnAnAtAt %evel 2>-
cout ++ >AnAnAtAt Iound 9>-
cout ++ >AnAnAtAt %earning Iedefine>-
cout ++ >AnAtAt .n.o.m.t.c.>-
cout ++ >AnAn Pour 'nswer? >-
cin ,, answer-
if/answer::>informatics>0
=
cout ++ >AnAnAtAt KorrectDD>-
score: score R 999-
cout ++ >AnAnAn>-
credits/0-
@
68 | P a g e
else if /answerD:>informatics>0
=
cout ++ >AnAnAtAt FrongDAnAnAtAt >++tries;$<++endl++endl-
score: score E999-
@
@
gameover/0-
@
void gameover/void0
=
cout ++ >AnAnAtAt Came )verDD>-
cout ++ >AnAnAtAt Qack to &ain &enu;PMG@H? >-
cin ,, btm-
switch/btm0
=
69 | P a g e
case NGN?
case NnN?
e$it/90-
break-

case NPN?
case NyN?

sub.menu/0-
break-
default?

cout ++ >AnAnAtAt Invalid KhoiceD>-
cout ++ >AnAn>-
gameover/0-
@

@
void credits/void0
=
70 | P a g e
cout ++ >AnB B B B B B B B B B B B B B B B B B B B B B B B B>-
cout ++ >AnBAtAtAtAtAtAtB>-
cout ++ >AnBAtAtAtAtAtAtB>-
cout ++ >AnBAtAtKongratulationsDAt B>-
cout ++ >AnBAtAtPou Have Oinish PinoyguruDDAtB>-
cout ++ >AnBAtAtPour "core? > ++ score R> AtB>-
cout ++ >AnBAtAtKreated by TQ Cwapo )dellot B>-
cout ++ >AnBAtAtAtAtAtAtB>-
cout ++ >AnBAtAtAtAtAtAtB>-
cout ++ >AnB B B B B B B B B B B B B B B B B B B B B B B B B>-
gameover/0-
@

*.. )rogra Te!ting
-. Te!t )lan
71 | P a g e
!he tests consists of if the input of the player when answering the game
will be accepted
B. Te!t %a!e! and /e!ult!
!est Kase?
)bSective? !o check if the input answers will be accepted.
#$pected
!est Iesult? !he input answers will be accepted.
'ctual !est
Iesult? "uccess.
72 | P a g e
.. *$leentation
-. Manual
!he mechanics of this game is that you will have to guess the word. !he
word has a hint on what category it belongs to as well as there are letters
of that word that are already shown. !he accepted answer should be in
lower case only. !here are three tries or it is game over.
.*. %onclu!ion
-. +trength!
!he game is very clean and organi(ed. !he player will not be confused in
the game.
73 | P a g e
B. 0ea1ne!!e!
!he game is very short and it is not replayable.
%. 'nhanceent!
!he game can be enhanced to add more questions, to add more display
and graphics.
.**. %ritical -$$rai!al
!he game is very fun to create as well as very fun to play. )verall this proSect
has met my obSectives. !he lesson I learned is patience and understanding.
74 | P a g e