|
@ -2915,6 +2915,26 @@ void v_play_horoscope(void) { |
|
|
printf("****************\n\n"); |
|
|
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){ |
|
|
void feedbackForm(void){ |
|
|
int rating; |
|
|
int rating; |
|
|
char feedback[1000]; |
|
|
char feedback[1000]; |
|
@ -2998,7 +3018,7 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
|
|
|
int jump_to_menu = 0; |
|
|
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("Welcome to the Game Menu!\n"); |
|
|
printf("1. QuizGame\n"); |
|
|
printf("1. QuizGame\n"); |
|
|
printf("2. Fact or Lie?\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("17. Mini-Game: Crossword Puzzle!\n"); |
|
|
printf("18. Gambling Game!\n"); |
|
|
printf("18. Gambling Game!\n"); |
|
|
printf("19. Mini-Game: History Quiz!\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: "); |
|
|
printf("Enter your choice: "); |
|
|
scanf("%d", &choice); |
|
|
scanf("%d", &choice); |
|
|
v_progress_bar(argc,argv); |
|
|
v_progress_bar(argc,argv); |
|
@ -3102,6 +3123,10 @@ int main(int argc, char *argv[]) { |
|
|
jump_to_menu = 1; |
|
|
jump_to_menu = 1; |
|
|
break; |
|
|
break; |
|
|
case 20: |
|
|
case 20: |
|
|
|
|
|
v_play_allaboutspace(); |
|
|
|
|
|
jump_to_menu = 1; |
|
|
|
|
|
break; |
|
|
|
|
|
case 21: |
|
|
printf("\nThank you for trying our C code!\n"); |
|
|
printf("\nThank you for trying our C code!\n"); |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|