|
@ -1224,6 +1224,37 @@ if (strcmp(answer, "a") == 0) { |
|
|
return score; |
|
|
return score; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int B_round7(void) { |
|
|
|
|
|
int score = 0; |
|
|
|
|
|
char answer[20]; |
|
|
|
|
|
|
|
|
|
|
|
printf("Round 7\n"); |
|
|
|
|
|
printf("Question 1: Who directed the movie 'The Shawshank Redemption'?\n"); |
|
|
|
|
|
printf("Options: a.)Martin Scorsese b.)Francis Ford Coppola c.)Steven Spielberg d.)Frank Darabont"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "d") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is d.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("Question 2: Who invented the telephone?\n"); |
|
|
|
|
|
printf("Options: a.)Alexander Graham Bell b.)Thomas Edison c.)Nikola Tesla d.)Gutenberg"); |
|
|
|
|
|
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(); |
|
@ -1239,6 +1270,7 @@ void b_epic_game() { |
|
|
total_score += B_round4(); |
|
|
total_score += B_round4(); |
|
|
total_score += B_round5(); |
|
|
total_score += B_round5(); |
|
|
total_score += B_round6(); |
|
|
total_score += B_round6(); |
|
|
|
|
|
total_score += B_round7(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|