|
@ -1133,6 +1133,36 @@ int B_round3(void) { |
|
|
return score; |
|
|
return score; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int B_round4(void) { |
|
|
|
|
|
int score = 0; |
|
|
|
|
|
char answer[20]; |
|
|
|
|
|
printf("Round 4\n"); |
|
|
|
|
|
printf("Question 1: What is the capital of France?\n"); |
|
|
|
|
|
printf("Options: a.)Paris b.)London c.)Madrid d.)Berlin"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "a") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is a.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("Question 2: Who painted the Mona Lisa?\n"); |
|
|
|
|
|
printf("Options: a.)Leonardo da Vinci b.)Michelangelo c.)Raphael d.)Titian"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "a") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is a.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
return score; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void b_epic_game() { |
|
|
void b_epic_game() { |
|
|
B_displayWelcomeMessage(); |
|
|
B_displayWelcomeMessage(); |
|
|
b_entertostart(); |
|
|
b_entertostart(); |
|
@ -1145,6 +1175,7 @@ void b_epic_game() { |
|
|
total_score += B_round1(); |
|
|
total_score += B_round1(); |
|
|
total_score += B_round2(); |
|
|
total_score += B_round2(); |
|
|
total_score += B_round3(); |
|
|
total_score += B_round3(); |
|
|
|
|
|
total_score += B_round4(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|