Question
Scenario Problem Write a quiz-tutor program using C++ language, which you are knowledgeable. The program should read a question and the correct answer from a
Scenario Problem Write a "quiz-tutor" program using C++ language, which you are knowledgeable. The program should read a question and the correct answer from a file, display the question and accept an answer from the user. If the answer is correct, the program should go on to the next question of higher difficulty. If it is incorrect, another question of similar level will be displayed. When the questions are exhausted, the missed questions should be displayed again for receiving answer from the user. Develop a scoring mechanism for the correct answers and display the final score. Also, display the breakdown of scores:
1st attempt - 2 marks per correct answer 2nd attempt - 1 mark per correct answer Incorrect (after 2nd attempt) O mark per question Question (100 marks) You are required to construct the algorithm and create a program to demonstrate the fulfilment of the above scenario. i. (20 marks) ii. Algorithm Class Diagram Pseudocode for each member functions. (Appendix) Coding Class/structure Member functions Main program (70 marks) Appendix 1. GOAL / PURPOSE Find the total value of 3input values 2. PRE-CONDITION Accept 3 values from user 3. POST CONDITION Display the total value 4. DATA Result, x, y, z : Integer 5. ALGORITHM ACCEPT 3 values (x, y, z) Result = x+y+z DISPLAY Result 6. EXPLANATION i. The system will accept 3 integer values (x, y, z) input by the user. ii. The 3 integer values will sum-up and store in Result. iii. The value store in Result will be displayed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started