+ 11
*Challenge* : Create a BMI Calculator
Create a program that will accept input from the user and output their Body Mass Index (BMI). The program must be able to ask the user if they want to use imperial (inches, pounds), or metric (centimeters, kilograms) measurements. The program must be able to output their BMI using BOTH imperial or metric measurements, not just one measurement. i.e. height: 74 (in), weight: 220 (lbs) or height: 188 (cm), weight: 100 (kg)
8 Respuestas
+ 3
Here is Gavin's
https://code.sololearn.com/clwHf828THkw/?ref=app
+ 2
Here's mine
https://code.sololearn.com/cy7prUO4mTvs
+ 2
Here is mine. Checks for all valid input. Input must be separated into 3 lines, the choice of measurement system, weight, then height. 1 is for metric system, 2 is for imperial
https://code.sololearn.com/c9w3Ad96tqv3/?ref=app
+ 2
https://code.sololearn.com/cDd6jy7qFpiH/#py
0
https://code.sololearn.com/cGdj2FPeVF0t/?ref=app
here's mine