00:01
Right, so this is a pretty simple assignment.
00:06
A program that calculates bmi.
00:07
I happen to be living in a country that uses kilograms and inches, so forgive the slowness, if any, when i'm doing some conversion.
00:16
So i've gone ahead and written the program ahead of time.
00:19
We see i'm going to use python because i think it was not specified what, yeah, it wasn't specified what language i should use.
00:26
So python is probably the simplest.
00:28
We are going to input first weight and height, and then we're going to try to convert it into a floating point number, right? because the user could input perhaps a decimal number for those values.
00:40
If for any reason the user does not enter a valid number for those, so if i just try to run it and i go like a load, right? we will catch that exception and we'll output an error message instead.
00:55
Right? so moving on to the actual code, i'm just going to separate it so it's easier for you to read.
01:00
We'll calculate the bmi, which is really simple, right? weight times 703 divided by, make sure we put the brackets around height squared...