There were some bugs/silly mistakes I caught, such as sourcing an image incorrectly (bar.png instead of Bar.png). As for the bar graph, I realized that it only showed a portion of the bar, even if I got all questions in that section correct. I realized that I sorted questions like so:
if ((question_number+1) < 6) {
Unit = 0
} . The issue is that each unit/grade has 6 questions, but since I said <6, for example, it only considered questions 1-5. I just increased n of < n by one, but it took me a bit to fix my little idiot mistake. But hey, that’s what coding’s for, right? (Here’s the fixed code!)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.