diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 24a25d9..7bd42ab 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2915,6 +2915,26 @@ void v_play_horoscope(void) { printf("****************\n\n"); } +void v_allaboutspace(void){ + char spacename[20]; + printf("\nEnter your Astronaut name: \n"); + scanf("%s", spacename); + printf("\nHello, Commander %s! Pleased to have you onboard.\n\n", spacename); + +} + +void v_play_allaboutspace(void){ + + printf("*********************************************\n"); + printf("Welcome to the Quiz which is all about Space!\n"); + printf("*********************************************\n\n"); + v_allaboutspace(); + printf("*****************************************\n"); + printf("Hope you enjoyed. TO INFINITY AND BEYOND!\n"); + printf("*****************************************\n\n"); + +} + void feedbackForm(void){ int rating; char feedback[1000]; @@ -2998,7 +3018,7 @@ int main(int argc, char *argv[]) { int jump_to_menu = 0; - while (choice != 20 || jump_to_menu) { + while (choice != 21 || jump_to_menu) { printf("Welcome to the Game Menu!\n"); printf("1. QuizGame\n"); printf("2. Fact or Lie?\n"); @@ -3019,7 +3039,8 @@ int main(int argc, char *argv[]) { printf("17. Mini-Game: Crossword Puzzle!\n"); printf("18. Gambling Game!\n"); printf("19. Mini-Game: History Quiz!\n"); - printf("20. Exit\n"); + printf("20. All About Space and the Universe!\n"); + printf("21. Exit\n"); printf("Enter your choice: "); scanf("%d", &choice); v_progress_bar(argc,argv); @@ -3102,6 +3123,10 @@ int main(int argc, char *argv[]) { jump_to_menu = 1; break; case 20: + v_play_allaboutspace(); + jump_to_menu = 1; + break; + case 21: printf("\nThank you for trying our C code!\n"); break; default: diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 07ea7cb..3d201b1 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -33,6 +33,8 @@ void v_progress_bar(int argc, char *argv[]); void v_play_rockpapersciss(void); void v_horoscope(int day, int month); void v_play_horoscope(void); +void v_allaboutspace(void); +void v_play_allaboutspace(void); void million_instructions(); void million_exit(int million_a);