Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program that asks the user to enter their weight (in kilograms) and height (in cm). The program should calculate and print the
Write a C++ program that asks the user to enter their weight (in kilograms) and height (in cm). The program should calculate and print the Body Mass Index (BMI). BMIs formula is: BMI = h2 where is a person's weight in kilograms and h is their height in meters. Hint: You may need to do some unit conversions to be able to apply the formula correctly! Sample Session: (Values in Red are entered by the user) Enter your height in cm: 160 Enter your weight in Kg: 62 Your BMI is 24.2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started