Click here to Skip to main content
15,921,203 members

Comments by Member 14873171 (Top 3 by date)

Member 14873171 25-Jun-20 10:43am View    
when you click the button it's supposed to add +1 to addedScore when you pick the correct answer if not, no score is added and it will advance to the next question. from what i understand it's the submit button itself that checks the answers from the strings and determines if it's right or not through if/else since i don't see any separate code to check if the answers are right or wrong ;-;
Member 14873171 25-Jun-20 10:36am View    
well addedScore is defined from

int questionNo = 0, legitQuestionNo = 0, newScore = 0, oldScore = 0, addedScore = 0;

so if the answer you chose is present or matches the list of correct answers from the string correctAnsSet, +1 is added to addedScore but it doesn't do that. hope i explained that properly ;-;
Member 14873171 25-Jun-20 10:25am View    
if the answer matches any of the correct answers from the string correctAnsSet, it will add a +1 score. randNumberSet is a question randomizer.