BSA (m2) = SQRT( [Height(cm) x Weight(kg) ]/ 3600 )

36 views
Skip to first unread message

Ja Al

unread,
Jun 27, 2016, 8:51:49 AM6/27/16
to MIT App Inventor Forum

i would like at write this formula in app inventer any one can help me on this

BSA (m2) = SQRT( [Height(cm) x Weight(kg) ]/ 3600 )

thanks

Taifun

unread,
Jun 27, 2016, 10:30:58 AM6/27/16
to MIT App Inventor Forum
important is to nest the blocks correctly, see an example here http://stackoverflow.com/a/26041125/1545993
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Abraham Getzler

unread,
Jun 27, 2016, 12:19:52 PM6/27/16
to MIT App Inventor Forum
If you right-click-External-Inputs on the blocks, 
the nesting becomes branching.

I find that easier to read.

ABG

Abraham Getzler

unread,
Jun 27, 2016, 1:10:30 PM6/27/16
to MIT App Inventor Forum
The attached should get you started.

Actual use would require extra blocks to validate input values against reasonable upper and lower limits, and pop up a Notifier if anything is unreasonably large or small.

You could jazz the app up by adding sliders for the two input values.

ABG

BSA.aia
Designer.png
screenshot.png
blocks.png

Ja Al

unread,
Jun 29, 2016, 9:58:24 AM6/29/16
to MIT App Inventor Forum
thanks :)

Ja Al

unread,
Jun 29, 2016, 9:58:47 AM6/29/16
to MIT App Inventor Forum
thanks :)

Ja Al

unread,
Jun 29, 2016, 10:01:28 AM6/29/16
to MIT App Inventor Forum
very helpful and extremely user friendly two points which i was not able to sort if your could guid me it would be much appreciated i have attached herewith the screen capture of my problem thanks
Screen Shot 2016-06-29 at 9.57.21 PM.png

ScottFerguson

unread,
Jun 29, 2016, 2:26:21 PM6/29/16
to MIT App Inventor Forum
You are trying to do a calculation with the values in the labels rather than the textboxes which is giving an error.
Reply all
Reply to author
Forward
0 new messages