Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

8-15. How can companies benefit from using virtual teams?

Answered: 1 week ago

Question

7 How can a culture encourage ethical (or unethical) behaviour?

Answered: 1 week ago

Question

=+j Improve the effectiveness of global and virtual teams.

Answered: 1 week ago