When users set a quiz with more questions than is stored in the application, the total score is incorrectly calculated.
In this instance, I added 4 questions and started a random quiz with 100 questions (10 topics, 10 questions each).
By scoring 3 out of 4 questions correctly, the quiz results should be 75%. Instead, it is 3%, because it is still calculated using a total of 100 questions. The application should alert the user if the number of stored questions is insufficient for the user's desired quiz size, and calculate the user's score based on the number of questions tested by the application.
When users set a quiz with more questions than is stored in the application, the total score is incorrectly calculated.
In this instance, I added 4 questions and started a random quiz with 100 questions (10 topics, 10 questions each).
By scoring 3 out of 4 questions correctly, the quiz results should be 75%. Instead, it is 3%, because it is still calculated using a total of 100 questions. The application should alert the user if the number of stored questions is insufficient for the user's desired quiz size, and calculate the user's score based on the number of questions tested by the application.
[original: nus-cs2113-AY2425S1/pe-interim#599] [original labels: severity.Low type.FunctionalityBug]