|
@ -1286,6 +1286,37 @@ if (strcmp(answer, "a") == 0) { |
|
|
return score; |
|
|
return score; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int B_round9(void) { |
|
|
|
|
|
int score = 0; |
|
|
|
|
|
char answer[20]; |
|
|
|
|
|
|
|
|
|
|
|
printf("Round 9\n"); |
|
|
|
|
|
printf("Question 1: The median is the value separating the higher half from the lower half of a data set.\n"); |
|
|
|
|
|
printf("Options: a.)True b.)False"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "a") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is True.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("Question 2: The mode of a data set is the value that occurs most frequently.\n"); |
|
|
|
|
|
printf("Options: a.)True b.)False"); |
|
|
|
|
|
printf("Answer: "); |
|
|
|
|
|
scanf("%s", answer); |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(answer, "a") == 0) { |
|
|
|
|
|
printf("Correct!\n"); |
|
|
|
|
|
score++; |
|
|
|
|
|
} else { |
|
|
|
|
|
printf("Incorrect. The answer is True.\n"); |
|
|
|
|
|
} |
|
|
|
|
|
return score; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void b_epic_game() { |
|
|
void b_epic_game() { |
|
|
B_displayWelcomeMessage(); |
|
|
B_displayWelcomeMessage(); |
|
|
b_entertostart(); |
|
|
b_entertostart(); |
|
@ -1303,6 +1334,7 @@ void b_epic_game() { |
|
|
total_score += B_round6(); |
|
|
total_score += B_round6(); |
|
|
total_score += B_round7(); |
|
|
total_score += B_round7(); |
|
|
total_score += B_round8(); |
|
|
total_score += B_round8(); |
|
|
|
|
|
total_score += B_round9(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|