Calculating Average

Jun 21, 2019

Hello,

I need to build a slide that allows the learner to enter numbers in 2 boxes, then click a button to display the average of those 2 boxes.  I thought I had an idea how to do it, but I've gotten myself completely lost.  Any help is much appreciated.  Thanks. 

1 Reply
Ned Whiteley

Hi Shelli,

The attached example will show you how to calculate the average of two numbers. The same principle can be used for averages of more numbers if required.

The way it works is to use a variable, in this case AverageResult, to which you add each of the numeric entry variables one at a time and finally divide the AverageResult variable by the required number, in this case 2, to achieve the answer.

This discussion is closed. You can start a new discussion or contact Articulate Support.