DEV Community

Discussion on: Design a BMI Calculator using JavaScript

 
ahtshamajus profile image
Ahtsham Ajus • Edited

no sir 1.73736m and 173.736cm

Thread Thread
 
link2twenty profile image
Andrew Bone • Edited

Let's do some maths 😁

985 kg/m3
weight = height(m) * width(m) * depth(m) * 985
57 = 173 * 0.41 * depth * 985
57 / 985 = 173 * 0.41 * depth
0.0579 (4dp) = 173 * 0.41 * depth
0.0579 = 70.93 * depth
depth = 8.1629775835330607641336528972226e-4m
depth = 0.0816cm (4dp)
Enter fullscreen mode Exit fullscreen mode

This is presuming average human density and a 'normal' shoulder width of 41cm.

😅

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Aww now our thread makes no sense as OP has fixed it 🤣🤣

Love the fact you took the time to work it out properly!