Write a C++ program for simple Body Mass Index calculation. For example: to calculate a BMI value, we just need the valu
Posted: Fri May 20, 2022 1:29 pm
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.