Can.t multiply or divide?
April 24, 2007 12:00 AM
I'm using Lectora 2006 SP5. My goal is to have 3 test sections in one course. At any time during the course the user can click a button named "Show My Scores" to show each of the 3 test scores and the "final" course score. I have accomplished displaying each test score in a text box. What I have not accomplished is showing the correct final score because it seems I cannot multiply or divide. Here's what I've done to this point:- Created a temp variable named SumScore with an initial value of 0- Created an action (on click My Score button) to add Test1_Score to SumScore- Created an action (on click My Score button) to add Test2_Score to SumScore- Created an action (on click My Score button) to add Test3_Score to SumScore- Created another button with an action to reset SumScore to 0 when they are done viewing their scores.- I created several other actions to show and hide text boxes but these are not applicable to the calculation problem.I then tried to create an action to divide SumScore by 3, but it won't divide. I changed this action to add 3 to Sumscore and it displays that just fine (i.e. if I obtained 100% on all 3 tests it shows 303). I changed it again to subtract three from SumScore and that worked too (i.e. if I obtained 100% on all 3 tests it shows 297). Finally, I placed all actions at the title or AU level (being that I publishing to AICC)Any ideas why the variable Sumscore will not divide by 3?Thanks in advance.
Discussions have been disabled for this post