|
@ -1317,6 +1317,37 @@ if (strcmp(answer, "a") == 0) { |
|
|
return score; |
|
|
return score; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int B_round10(void) { |
|
|
|
|
|
int score = 0; |
|
|
|
|
|
char answer[20]; |
|
|
|
|
|
|
|
|
|
|
|
printf("Round 10\n"); |
|
|
|
|
|
printf("Question 1: What is the chemical formula for water?\n"); |
|
|
|
|
|
printf("Options: a.)CO2 b.)O2 c.)H2O d.)N2O"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "c") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is c.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("Question 2: Who developed the theory of relativity?\n"); |
|
|
|
|
|
printf("Options: a.)Isaac Newton b.)Albert Einstein c.)Stephen Hawking d.)Neil deGrasse Tyson"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "b") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is b.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
return score; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void b_epic_game() { |
|
|
void b_epic_game() { |
|
|
B_displayWelcomeMessage(); |
|
|
B_displayWelcomeMessage(); |
|
|
b_entertostart(); |
|
|
b_entertostart(); |
|
@ -1335,6 +1366,8 @@ void b_epic_game() { |
|
|
total_score += B_round7(); |
|
|
total_score += B_round7(); |
|
|
total_score += B_round8(); |
|
|
total_score += B_round8(); |
|
|
total_score += B_round9(); |
|
|
total_score += B_round9(); |
|
|
|
|
|
total_score += B_round10(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|