Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the program using visual studio 2013 preferred c++ A simple rule to estimate the ideal body weight is calculated as follows: a. Men: 106
Create the program using visual studio 2013 preferred c++
A simple rule to estimate the ideal body weight is calculated as follows: a. Men: 106 pounds for first S feet of height and 6 pounds for each additional inch. b. Women: 100 pounds for first S feet of height and 5 pounds for each additional inch. Write a C++ program that reads from the user: the gender (F or M). two numbers: one for height in feet and the second for the additional inches, and his/her actual weight. Based on these values, calculate and output the ideal body weight. The body mass index (BMI) of the person is calculated as: BMI- weight(lb) (height(in)]^2 times 703.0 Calculate and output the ideal and actual body mass index (BMI) of the person. If the actual BMI is within 10% of the ideal BMI. then output that the person has a healthy weight. If the actual BMI is smaller by more than 10% of the ideal BMI. then output that the person in underweight. If the actual BMI is grater by more than 10% of the ideal BMI. then output that the person is overweight. In your program assume that the height of the person should be between S and 7 feet only 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