Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago