|
|
@ -1255,6 +1255,37 @@ if (strcmp(answer, "a") == 0) { |
|
|
|
return score; |
|
|
|
} |
|
|
|
|
|
|
|
int B_round8(void) { |
|
|
|
int score = 0; |
|
|
|
char answer[20]; |
|
|
|
|
|
|
|
printf("Round 8\n"); |
|
|
|
printf("Question 1: Who played the lead role in the movie 'The Godfather'?\n"); |
|
|
|
printf("Options: a.)Marlon Brando b.)Robert De Niro c.)Al Pacino d.)Jack Nicholson"); |
|
|
|
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 wrote the play 'Hamlet'?\n"); |
|
|
|
printf("Options: a.)William Shakespeare b.)Christopher Marlowe c.)Ben Jonson d.)John Milton"); |
|
|
|
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() { |
|
|
|
B_displayWelcomeMessage(); |
|
|
|
b_entertostart(); |
|
|
@ -1271,6 +1302,7 @@ void b_epic_game() { |
|
|
|
total_score += B_round5(); |
|
|
|
total_score += B_round6(); |
|
|
|
total_score += B_round7(); |
|
|
|
total_score += B_round8(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|