calculations with multiple variables
Aug 23, 2012
Hi
Is it possible to determine the value of one variable by performing some calculation of other variables? The following is a very simple example, just to illustrate the kind of thing I'd like to do. (It's too simple to include in a course, but if I can understand how to use variables to do this one, I'll know how to do more complex examples, I hope!...).
Say I had a course on planning household finances. To calculate how much the learner needs to save each month they could enter their target savings amount in one variable (called, say, SavingTarget) and the number of months to reach that goal in another variable (NumberOfMonths). I can then calculate the amount they need to save each month, and display the result in a variable called SavingPerMonth. To do this I would set SavingPerMonth to be SavingTarget divided by NumberOfMonths.
Appreciate responses.
Thanks, Diane.
3 Replies
I would assign the value of Target to savings per month and then add another trigger to divide by numberOfMonths, see the attached file
Phil
Thanks Phil - now I see how to perform a calculation with a couple of variables - perfect. (So simple, when you see how!).
Appreciate your time in creating the file, especially with such a quick response
Kind regards
Diane
Phil, you are always so kind with your time and samples. I appreciate it too! -k
This discussion is closed. You can start a new discussion or contact Articulate Support.