From be49725d13b6f6df6a43969174130c9db58d0ed2 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Sat, 28 Jan 2023 21:14:56 +0000 Subject: [PATCH] Added credits and minor fixes --- src/main/quizproject.c | 15 +++++++++++++-- src/main/quizproject.h | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 9841ff6..1d64408 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -459,8 +459,18 @@ void feedbackForm(void){ fgets(feedback, sizeof(feedback), stdin); printf("\nThank you for your feedback!\n"); - printf("Your rating: %d\n", rating); - printf("Your feedback: %s", feedback); + printf("Your rating: %d/5\n", rating); + printf("Your feedback: %s\n", feedback); +} + +void displayCredits(void) { + printf("*******************************\n"); + printf("Thank you for playing our Game!\n"); + printf("*******************************\n\n"); + printf("This game was developed as a project for Hochschule Fulda. \nCreated by Vedant Bodhe, Emmanuel Afanyede, Berke Sevenler and Gabriel Tchakunte.\n\n"); + printf("Special thanks to:\n"); + printf("- Herr Thomas Papendieck (Lecturer: Programmiermethoden)\n"); + printf("- Frau Monika Schak (Lecturer: Programming-1 in C)\n"); } int main() { @@ -515,6 +525,7 @@ int main() { printf("Invalid choice!\n"); } feedbackForm(); + displayCredits(); return 0; } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 1b51c6d..a54718f 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -22,6 +22,7 @@ void displayThankYouMessage(void); int* randomNumber(); void hintForHardQuestions(int); void feedbackForm(void); +void displayCredits(void); #define NUM_QUESTIONS 5