Answered step by step
Verified Expert Solution
Question
1 Approved Answer
weight height2 weight height2 The BMI is calculated as BMI = (weight in kg height in meters) or BMI x 703 (weight in pounds, height
weight height2 weight height2 The BMI is calculated as BMI = (weight in kg height in meters) or BMI x 703 (weight in pounds, height in inches) Write a C++ program which prompts the user to enter numbers for given limits and value steps for possible person weights and heights. The program then calculates the body mass index (BMI) and creates a matrix based on these inputs. Implement only one of the two formulas but make sure that vour menu mentions the measurement units A sample run of your program (for weight in kg and height in meters) should look like: This program can calculate the BMI of a person for given limits and value steps and creates a matrix based on these inputs Please enter minimum weight in kg: 70 Please enter maximum weight in kg: 110 Please enter weight step in kg: 5 Please enter minimum height in meters: 1.5 Please enter maximum height in meters: 2 Please enter height step in meters: 0.1 The BMI for the given inputs is the following: Height 1.50 1.601.70 1.80 1.960 Weight 70.00 31.11 27.34 24.22 21.60 19.39 75.00 33.33 29.30 25.95 23.15 20.78 80.00 35.56 31.25 27.68 24.69 22.16 85.00 37.78 33.20 29.4126.23 23.55 90.00 4.00 35.1631.14 27.7824.93 95.00 42.22 37.11 32.8729.32 26.32 100.00 44.4439.06 34.60 30.86 27.70 105.00 46.67 41.02 36.33 32.41 29.0
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