nus-cs2113-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Incorrect score when number of added questions is less than random quiz size #697

Open nus-pe-bot opened 1 week ago

nus-pe-bot commented 1 week ago

2_Quiz_bug.png

2_Quiz_bug_2.png

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]

naveen42x commented 1 week ago

Team's Response

No details provided by team.

Duplicate status (if any):

Duplicate of #526