From 67be641f46849902a5d1a77973cd6f8abf13e1e6 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Thu, 9 Feb 2023 00:45:53 +0000 Subject: [PATCH] Added a score grading system (v_AllAboutSpace) --- src/main/quizproject.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 2643e3a..5c161ab 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -3001,7 +3001,14 @@ void v_allaboutspace(void){ printf("\nIncorrect\n"); } - printf("\nYour score is: %d\n", space_score); + printf("\nYour score is: %d\n\n", space_score); + if (space_score == 5) { + printf("\nCongratulations! You are ready to take off!\n\n"); + } else if (space_score >= 3) { + printf("\nGood job! But you need some more training before you venture into space.\n\n"); + } else { + printf("\nYou tried... but time to study more about Space!\n\n"); + } }