1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
#include<iostream>
#include<conio.h>
#include<string>
using namespace std;
int main()
{
string name;
int age,A,subject,animal,answer1,A1;
char play,another,N,n,Y,y,ans,g,G,I,i,X,x,C1,help;
cout<<" ";
cout<<" ";
cout<<" ";
cout<<" ** * ** ***** ** ****** ******* ** ** ***** ";
cout<<" ** * * ** ** ** * * * ** * * ** ** ";
cout<<" ** ** ***** ******* ****** ******* ** * ** ***** ";
cout<<" ";
cout<<" Are you smarter than a 5th grader? ";
cout<<" ";
cout<<" ";
cout<<"\n";
cout<<"Enter name: ";
cin>>name;
cout<<"Enter age: ";
cin>>age;
system("cls");
cout<<"Press [G] for start, [I] for instructions, [X] for exit: ";
cin>>ans;
if(ans=='G'||ans=='g'){
system("cls");
cout<<" [1] Grade 1 Civics and Culture [2] Grade 1 Filipino\n\n [3] Grade 2 English\t\t [4] Grade 2 Math\n\n [5] Grade 3 Civics and Culture [6] Grade 3 Math\n\n [7] Grade 4 History\t\t [8] Grade 4 MAPEH\n\n [9] Grade 5 Science\t\t [10] Grade 5 English\n\n";
cout<<"\nPlease select your subject: ";
cin>>subject;
system("cls");
switch(subject){
case 1: cout<<"Complete the quote below:\n\n"; //answer dito ay: animal
cout<<" He who does not love his own language is worse than an _____ and smelly fish\n\n";
cout<<"Do you need help?[y/n]: ";
cin>>help;
if(help=='Y'||help=='y'){
cout<<"[P] for peek\n[C] for copy\n[S] for save\n";
cout<<"Enter your choice: ";
cin>>C1;
{
if(C1=='P'||C1=='p'){
cout<<"The answer is animal";
cout<<"\nEnter your answer: ";
cin>>A1;
{ if(A1==animal)
cout<<"Correct!";
else(A1!=animal);
cout<<"Wrong answer";
}
}
if(C1=='C'||C1=='c'){
cout<<"Correct! The answer is animal ";
}
if(C1=='S'||C1=='s'){
cout<<"Enter your answer: ";
cin>>A;
cout<<"Correct! The answer is animal";
}
}
}
if(help=='N'||help=='n'){
cout<<"Enter your answer: ";
cin>>A1;
{
if(A1==animal)
cout<<"Correct!";
if(A1!=animal)
cout<<"Wrong answer";
}
}
break;
case 2: cout<<"A part of a friendly letter where it states the adress of the writer and the date it was made\n\n"; //answer dito ay heading
break;
case 3: cout<<"True or False:\n\n"; //answer dito ay true
cout<<"When the plural of a noun shows possession or ownership, it is in its plural possessive form\n\n";
break;
case 4: cout<<"Fill in the blanks:\n\n";
cout<<"Mental Computation through estimation is done by rounding off a number to its_____ _____ _____\n\n"; //answer dito ay highest place value
break;
case 5: cout<<"What is the imaginary line that divides the globe into Northern Hemisphere and Southern Hemisphere.\n\n"; //answer dito ay equator
break;
case 6: cout<<"Fill in the blanks:\n\n";
cout<<"Fractions representing numbers equal to ____ have the same numerator and denominator\n\n"; //answer dito ay one
break;
case 7: cout<<"Region 4-A are consists of Quezon,Rizal,Cavite,Laguna,and Batangas. What is the name of these five provinces?\n\n"; //answer dito ay calabarzon
break;
case 8: cout<<"In Music, what is composed of 5 lines and four spaces?\n\n";
break;
case 9: cout<<"Under which sub-group of invertebrate animals do the clam, squid, octopus and snail belong?\n\n"; //answer dito ay mollusks
break;
case 10: cout<<"What type of adjectives expresses qualities of nouns and pronouns?\n\n"; //answer dito ay descriptive adjectives
break;
}
}
if(ans=='I'||ans=='i'){
system("cls");
cout<<"This game will ask questions to you with general knowledge questions. The more questions you answers correctly, the longer you stay in the game. The questions asked to you increase in difficulty, starting with first-grade level and progressing in difficulty up to questions from a fifth-grade curriculum. The player earns a PHP 1,000 for each question he answers correctly. Just one wrong answer and you will be eliminated from the game. Don't worry, you have three lifelines that can save you, these are the peek,copy, and save.\n\n Peek - this lifeline will allow you to see the answer, but it will still depend on you if you will copy it or not\n\n Copy - this lifeline will automatically copy the right answer\n\n Save - this lifeline will automatically save you even if you write the wrong answer";
cout<<"\n\n\nDo you want now to play the game?[y/n]: ";
cin>>play;
}
{
if(play=='Y'||play=='y'){
cout<<"Enter name: ";
cin>>name;
cout<<"Enter age: ";
cin>>age;
system("cls");
cout<<" [1] Grade 1 Civics and Culture [2] Grade 1 Filipino\n [3] Grade 2 English\t\t [4] Grade 2 Math\n [5] Grade 3 Civics and Culture [6] Grade 3 Math\n [7] Grade 4 History\t\t [8] Grade 4 MAPEH\n [9] Grade 5 Science\t\t [10] Grade 5 English\n";
cout<<"\nPlease select your subject: ";
cin>>subject;
system("cls");
switch(subject){
case 1: cout<<"Complete the quote below:\n\n"; //answer dito ay: animal
cout<<" He who does not love his own language is worse than an _____ and smelly fish\n\n";
cout<<"Do you need help?[y/n]: ";
cin>>help;
if(help=='Y'||help=='y'){
cout<<"[P] for peek\n[C] for copy\n[S] for save\n";
cout<<"Enter your choice: ";
cin>>C1;
{
if(C1=='P'||C1=='p'){
cout<<"The answer is animal";
cout<<"\nEnter your answer: ";
cin>>A1;
{ if(A1==animal)
cout<<"Correct!";
else(A1!=animal);
cout<<"Wrong answer";
}
}
if(C1=='C'||C1=='c'){
cout<<"Correct! The answer is animal ";
}
if(C1=='S'||C1=='s'){
cout<<"Enter your answer: ";
cin>>A;
cout<<"Correct! The answer is animal";
}
}
}
if(help=='N'||help=='n'){
cout<<"Enter your answer: ";
cin>>A1;
{
if(A1==animal)
cout<<"Correct!";
if(A1!=animal)
cout<<"Wrong answer";
}
}
break;
case 2: cout<<"A part of a friendly letter where it states the adress of the writer and the date it was made\n\n"; //answer dito ay heading
break;
case 3: cout<<"True or False:\n\n"; //answer dito ay true
cout<<"When the plural of a noun shows possession or ownership, it is in its plural possessive form\n\n";
break;
case 4: cout<<"Fill in the blanks:\n\n";
cout<<"Mental Computation through estimation is done by rounding off a number to its_____ _____ _____\n\n"; //answer dito ay highest place value
break;
case 5: cout<<"What is the imaginary line that divides the globe into Northern Hemisphere and Southern Hemisphere.\n\n"; //answer dito ay equator
break;
case 6: cout<<"Fill in the blanks:\n\n";
cout<<"Fractions representing numbers equal to ____ have the same numerator and denominator\n\n"; //answer dito ay one
break;
case 7: cout<<"Region 4-A are consists of Quezon,Rizal,Cavite,Laguna,and Batangas. What is the name of these five provinces?\n\n"; //answer dito ay calabarzon
break;
case 8: cout<<"In Music, what is composed of 5 lines and four spaces\n\n?"; //answer dito ay staff
break;
case 9: cout<<"Under which sub-group of invertebrate animals do the clam, squid, octopus and snail belong?\n\n"; //answer dito ay mollusks
break;
case 10: cout<<"What type of adjectives expresses qualities of nouns and pronouns?\n\n"; //answer dito ay descriptive adjectives
break;
}
}
if(play=='N'||play=='n')
cout<<"Ok thank you!";
}
if(ans=='X'||ans=='x'){
cout<<"BYE!\n";
}
return 0;
}
|