|
|
@ -52,13 +52,13 @@ void math_instruction(){ |
|
|
|
printf("\t\n\n------------------------Instructions-------------------------\n\n"); |
|
|
|
printf("\tThere are two Math Quiz Game. The first is Easy-Math and the second is Hard-Math\n"); |
|
|
|
printf("\tFor Easy-Math, you can choose a number between 1 and 5 to randomly generate a question.\n"); |
|
|
|
printf("\tA wrong answer means, you lose and you are out of the quiz Game.\n"); |
|
|
|
printf("\tA wrong answer means, you lose and out of the quiz Game.\n"); |
|
|
|
printf("\tIf you choose any other character or number apart from numbers between 1 and 5, you are out of the Game\n"); |
|
|
|
printf("\tIn the Hard-Math quiz, You are presented 10 questions\n\n"); |
|
|
|
printf("\t\n\n-------------------------------------------------\n\n"); |
|
|
|
printf( "\t\n\n !! Wish you all the best !! \n\n " ); |
|
|
|
printf("\t......................................................\n" ); |
|
|
|
printf( "\t\n Do you still wish to continue playing ? If yes, then press 1. Else, press 0 : " ); |
|
|
|
printf( "\n\t Do you still wish to continue playing ? If yes, then press 1. Else, press 0 : " ); |
|
|
|
int input1; |
|
|
|
scanf("%d", &input1); |
|
|
|
|
|
|
@ -84,8 +84,10 @@ void math_choose_game() { |
|
|
|
choose = toupper(choose); |
|
|
|
if (choose == 'A'){ |
|
|
|
math_display_choice(); |
|
|
|
final_score(); |
|
|
|
} else if(choose == 'B'){ |
|
|
|
e_math_ques(); |
|
|
|
final_score(); |
|
|
|
} else { |
|
|
|
goodbye_message(); |
|
|
|
} |
|
|
@ -202,9 +204,10 @@ void math_display_choice(){ |
|
|
|
} |
|
|
|
|
|
|
|
if(quiz_answer == user_answer){ |
|
|
|
printf("Correct!\n"); |
|
|
|
score++; |
|
|
|
correct(score); |
|
|
|
} else { |
|
|
|
printf("Wrong!\n"); |
|
|
|
wrong(score); |
|
|
|
break; |
|
|
|
} |
|
|
|
if (!(repeat)) { |
|
|
@ -368,6 +371,8 @@ void e_display_instruction() { |
|
|
|
printf("\t\t------------------------------------------------------\n"); |
|
|
|
printf("\t\t>>In the first, second Round, you answer True or false questions.<<\n"); |
|
|
|
printf("\t\t>>In the third Round, you answer questions which test your General knowledge.<< \n"); |
|
|
|
printf("\t\t>>In the fourth Round, you guess the word by filling in the empty space.<<\n"); |
|
|
|
printf("\t\t>>In the fifth Round, you get an anagram and the you have to guess the word.<<\n"); |
|
|
|
printf("\t\t-------------------------------------------------------\n\n"); |
|
|
|
printf( "\tDo you still wish to continue playing ? If yes, then press 1. Else, press 0 : " ); |
|
|
|
} |
|
|
@ -478,7 +483,7 @@ bool e_true_false(char choice) { |
|
|
|
void e_questions_r3(void) { |
|
|
|
|
|
|
|
char questions[][100] ={ |
|
|
|
"Which country started WW3?\n", |
|
|
|
"Which country started WW2?\n", |
|
|
|
"What is the strongest Metal in the world?\n", |
|
|
|
"which holy City do Muslim go on a pilgrimage to? \n" |
|
|
|
}; |
|
|
|