subtraction method outcome quiz | Community
Skip to main content

I am really really struggling to implement a subtraction method into my personality quiz. I have no idea what I’m doing, I have been going in circles for days and I really need some help! Would anyone be happy to chat further about this with me?

@isoruby  - care to share a screenshot of your logic so far? that will help us troubleshoot

des


Hi, here are screenshots of my answer points and then the final part which i tried to do subtraction method to determine the highest score and which answer to send to.. when I test it, I seem to be getting the right scoring (i think? I’m confused now with the subtraction going on), but it doesn’t lead me to the outcome which the highest score..

 

 


sorry forgot to tag you: ​@john.desborough 


Retagging ​@john.desborough in case he has any suggestions for you!


@isoruby ​@Liz  - it looks like the logic is funky. your rules here: 

don’t compare one variable to another, you have a series of subtractions that reduce the value of one variable … ie if v_power is 10 to start with, by using ALWAYS you run through this type of sequence 

  • (((((v_power - v_primal) - v_romantic) - v_sensualist )- v_spiritualist )- v_thrill ) = ????

 

you then compare your ???? result to is v_power greater than 0. 

you could have the scores as follows: 

v_power = 10

v_primal = 9

v_romantic = 5

v_sensualist = 4

v_spiritualist =3

v_thrill = 2 

 

running through your logic, v_power would be equal to -13 

you need to change the logic, i think, to something more like this: 

  • if v_power - v_primal is greater than 0 AND if v_power - v_romanitc greater than 0 AND if v_power - v_sensualist is greater than 0 AND v_power - v_spiritualist greater than 0 AND v_power - v_thrill greater than 0 then go to ending for v_power

in that rule, if each calculation/comparison is greater than 0 then v_power is the unique highest score. 

do that for each of the variables and you can direct to the appropriate ending if there is a unique high score. 

this does not take into account any ties though. 

hope that helps to get you started

 

des


Thank you so much, ​@john.desborough ! Let us know how this goes, ​@isoruby .


Reply