Question: Given the following scenario, A teacher would like to develop a simple game to test her students understanding on topics learnt in class. She plans

Given the following scenario, A teacher would like to develop a simple game to test her students understanding on topics learnt in class. She plans to have a game with five questions. The student will need to specify their name first before starting the game. The game will ask a question and check the answer given by the student each time. The game will display whether the answer is correct or wrong immediately after checking. With every correct answer the score is incremented by 5 and with wrong answer the score is decremented by 2. It will then proceed to the next question. This continues until all 5 questions are answered. Once all questions are answered, the score is totalled. Once totalled, if the score is less than zero than the score will be zero. The score will be displayed at the end of the game. The questions and answers to be used in this game are as follows: Question: What is 2 * 2; Answer: 4 Question: What is 3 * 2; Answer: 6 Question: What is 4 * 2; Answer: 8 Question: What is 5 * 2; Answer: 10 Question: What is 6 * 2; Answer: 12 (a) Show the flow chart for the game mentioned in the scenario above. [10/100] (b) Show a complete C++ program for the implementation of the game mentioned above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
