Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index.

Recommended Answers

All 4 Replies

We won't help you unless you show us what code you have first. Daniweb does not do your homework for you.

As of 2013 there is also a new formula around:
BMI = 1.3 x weight(kg)/height(m)^2.5 = 5734 x weight(lb)/height(in)^2.5

cout << "you're morbidly obese!" << endl

There you go.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.