185k views
5 votes
BMI Calculator, English Version, Professional, - We are improving our standard (std) BMI calculator to create a professional (pro) version of it. Write an interactive Java program that performs these actions:

a. Prompt the user to enter the user’s name.

b. Prompt the user to enter height in feet and inches (both integers) c. Read the height

d. Prompt the user to enter weight in pounds e. Calculate the BMI of the user and display a summary report.

f. [ PRO ] Prompt our user to enter a low weight and a high weight in pounds.

g. [ PRO ] Generate and display a table of BMI information for the entered weight range.

h. [ PRO ] Detailed improvements are required in this PRO version. Please make detailed observations.

1 Answer

3 votes

Final answer:

An interactive Java program for calculating BMI should prompt for the user's name, height in feet and inches, and weight in pounds to calculate their BMI and provide a personalized summary report. The professional version will also include a weight range input and display a detailed BMI table.

Step-by-step explanation:

Interactive Java Program for BMI Calculation

To create a professional BMI calculator in an interactive Java program, you would need to complete several steps to ensure functionality and professionalism. First, prompt the user for their name to personalize the experience. Next, collect their height in feet and inches, ensuring that both are integers, and convert this to total inches (feet * 12 + inches).

Then, prompt for the user's weight in pounds. To calculate BMI, multiply the weight by 703, then divide by the square of the height in inches, as per the formula: BMI = (weight (lb) * 703) / (height (in))2. In the pro version, you'll also prompt for a low and high weight and generate a table of BMI for weights within this range. Finally, a summary report displaying the calculated BMI and weight category (underweight, normal, overweight, or obese) will also be included.

Improvements over the standard version might include more detailed user feedback, graphical representation of BMI categories, and possibly the inclusion of recommendations or health advice based on the results. Such details cater to a professional audience looking for nuanced insights into health measurements.

User TheUnexpected
by
8.9k points