diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 8a17a4b..0bfba76 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -1193,6 +1193,37 @@ int B_round5(void) { return score; } +int B_round6(void) { +int score = 0; +char answer[20]; + +printf("Round 6\n"); +printf("Question 1: Who wrote the novel 'To Kill a Mockingbird'?\n"); +printf("Options: a.)Jane Austen b.)Agatha Christie c.)Harper Lee d.)Mary Shelley"); +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 painted the famous artwork 'The Starry Night'?\n"); +printf("Options: a.)Vincent van Gogh b.)Pablo Picasso c.)Leonardo da Vinci d.)Rembrandt"); +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(); @@ -1207,6 +1238,7 @@ void b_epic_game() { total_score += B_round3(); total_score += B_round4(); total_score += B_round5(); + total_score += B_round6(); } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 26097cc..3bbf236 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -59,6 +59,7 @@ int B_round2(void); int B_round3(void); int B_round4(void); int B_round5(void); +int B_round6(void); #define NUM_QUESTIONS 5 #define round 15