Question: using java and no loops 1. Body Mass Index (BMI) is calculated by taking your weight in kilograms and dividing it by the square of
1. Body Mass Index (BMI) is calculated by taking your weight in kilograms and dividing it by the square of your height in meters. (So, if you are 6'0", that's about 1.83 meters.) Write a Java program that prompts the user to enter a weight in lbs. and height in inches, and then (after appropriately converting the units) displays the BMI. Consider 1 pound to be equal to 0.45359 kilos and 1 inch to be equal to 0.0254 meters. Include the output of your code for five combinations of (weight, height) entered by the user in (pounds, inches)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
