Question: Write a complete Java program in a source file to be named Assignment1.java, that computes an individuals body mass index (BMI). Health professionals use this

Write a complete Java program in a source file to be named Assignment1.java, that computes an individuals body mass index (BMI). Health professionals use this number to advise people about whether or not they are overweight. Given an individuals height and weight, we can compute the persons BMI, which is the weight divided by the square of the height and then multiply the result of the operation by the literal value 703. Here is the formula: BMI = weight in pounds * 703 / (height in inches * height in inches) Your program asks user for height in feet and inches, and weight in pounds. Then it computes the BMI.

You can assume that the user will always input positive values for weight and height. The user may enter zeros but not negative numbers. You may want to create variables for the following pieces of information: height (int) weight (double) bmi (double) constant 703- BMIVALUE You may use additional variables, and you are not required to create the ones mentioned above. This program should be implemented using only one class (called Assignment1) and should only contain one method (main)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!