Forum Discussion

ganjarbudi's avatar
ganjarbudi
Community Member
4 years ago

Build Custom Calculator for Course

Hi guys, 

I'm looking for some advice.

I am trying to build a slide with a calculator but it did not work well.

The formula is

n = (a * b) / (c * d)

How should I set up trigger to perform that formula into my calculator? 

Thanks

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    1. Assign n with value of a

    2. Multiply n with value of b

    3. Assign temp_var with value of c

    4. Multiply temp_var with value of d

    5. Divide n by value of temp_var

  • ganjarbudi's avatar
    ganjarbudi
    Community Member

    Hi michael

    thank you for the help last time

    I want to ask again because I am still a beginner at this topic

    1. what if the formula is like this: n = (a*b*c) / d

    How should I set up trigger? 

     

    2. How to make calculation without pressing the 'calculate' button?

    Result appear when user entry all value into numeric entry box

    Thanks a lot