This might be a bit of a complex question. I’m building a quiz that has a lot of logic involved. I need the scoring to work properly for the logic to work correctly.
No matter what I do, the scoring just doesn’t calculate. Let me demonstrate:
I have a 9 question quiz, and each question is an opinion scale. The scale goes from 1-7. The first 4 questions are reversed scored, so 1=7, 2=6, and so on. Questions 5-9 are scored as stated. I entered in the scores for each question as noted (1-4 are reverse, 5-9 are normal). Here’s where it gets complex.
I want questions 1-6 to be summed up and added to variable @A_1 and questions 7-9 to be summed and added to variable @B_2. I then want @A_1 to be divided by 6 and @B_2 to be divided by 3. The scores come out so wacky every time.
I then want the averaged score to be recalled on the ending screen.
I’m using the following logic to total the scores:
1A: If 1A is greater or equal to 0, then add 1a to @A_1
1B: If 1B is greater or equal to 0, then add 1b to @A_1
1C: If 1C is greater or equal to 0, then add 1c to @A_1
1D: If 1D is greater or equal to 0, then add 1d to @A_1
1E: If 1E is greater or equal to 0, then add 1e to @A_1
1F: If 1F is greater or equal to 0, then add 1f to @A_1
1G: If 1G is greater or equal to 0, then add 1g to @B_2
1H: If 1H is greater or equal to 0, then add 1h to @B_2
1I: If 1I is greater or equal to 0, then add 1i to @B_2
Then,
Always divide @A_1 by 6
Always divide @B_2 by 3
Finally, they are taken to 1 of 4 ending screens depending on the following:
If @A_1 is less than 10 and @B_2 is less than 20, go to screen 1
If @A_1 is greater than 10 and @B_2 is less than 20, go to screen 2
If @A_1 is less than 10 and @B_2 is greater than 20, go to screen 3
If @A_1 is greater than 10 and @B_2 is greater than 20, go to screen 4
Where am I going wrong in this? Is this operator error? I’m hoping someone can help!! I’d be so appreciative.