Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use C++ Here is our program: Write a short program that asks for the user's height in feet and inches (as integers) and the user's

use C++
image text in transcribed
Here is our program: Write a short program that asks for the user's height in feet and inches (as integers) and the user's weight in pounds (as real). (Use three variables to store this information.) The program should report the user's body mass index (BMI). To calculate the BMI, first convert the height in feet and inches to height in inches ( 1 foot =12 inches). Then convert the height in inches to height in meters by multiplying by 0.0254. Then convert the user's weight in pounds into kilograms by dividing by 2 .2. Finally, compute the user's BMI by dividing the user's weight in kilograms by the square of the user's height in meters

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Explain the various kinds of retirement plans.

Answered: 1 week ago

Question

Explain workplace flexibility (work-life balance).

Answered: 1 week ago

Question

Discuss global issues in employee benefits.

Answered: 1 week ago