Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Assignment The formula for BMI is: BMI = ( Weight in Pounds / ( Height in inches * Height in inches ) ) *

Java Assignment

The formula for BMI is:

BMI = ( Weight in Pounds / ( Height in inches * Height in inches ) ) * 703

Write a program that prompts the user for their weight in pounds and height in inches and computes their BMI. Then, ask the user what

they would like their BMI to be and tell them what they would need to weigh in order to have that BMI.

Here is a sample run of the program:

How much do you weigh (in pounds)?

115

How tall are you (in inches)?

65

Your BMI is 19.13491124260355

A BMI between 20 and 24 is considered ideal. What would you like your BMI

to be? 22

Your weight

needs to be 132.21906116642955 pounds for your BMI to be 22.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

Identify agencies that regulate advertising. AppendixLO1

Answered: 1 week ago

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago