- Write A C Program For Simple Body Mass Index Calculation For Example To Calculate A Bmi Value We Just Need The Valu 1 (39.76 KiB) Viewed 44 times
Write a C++ program for simple Body Mass Index calculation. For example: to calculate a BMI value, we just need the valu
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a C++ program for simple Body Mass Index calculation. For example: to calculate a BMI value, we just need the valu
Write a C++ program for simple Body Mass Index calculation. For example: to calculate a BMI value, we just need the value of a person's height (kg) and weight (m). After receiving the height and weight from the user, the program shows the BMI value. Formula: Body Mass Index = height/(weight)? Create a program that includes: i) Create a BodyMass Index class that includes the interface and the implementation of the class that have the following: Attributes: height and weight of any numerical type. Behaviours: . Constructor will initialise the value of height and weight to 0. . Destructor . Mutator - set the value of height and weight; given from user through parameters. calculateBMI () - calculate and return the BMI value. ii) Create a main calculator program that should accept height and weight values and then show the BMI value.