The Project is built in C++ using Atom Editor and MinGW Compiler. It Can Calculate both in kg/m2 and lbs/in2 to predict the body type.
This Project is designed with an Attractive Front-End on the Console Itself. The user can enter his details in any format he likes, and the output can be calculated.
This Project is Executed in the following Steps:
BMI CONDITION |
BODY TYPE |
BMI < 18.5 |
UNDERWEIGHT |
18.5 <= BMI <= 25 |
NORMAL |
25 < BMI < 30 |
OVERWEIGHT |
BMI >= 30 |
OBESE |
If the user wants to exit, then the program with stop. Else the Programme will restart from point 1.
It has 5 functions (other than the main function), They are:
This function is used to change the color of the output text on the Output Console.
This function is used to print the top view of the program. This an attractive overview with the String "WELCOME TO BMI CALCULATOR" in the center.
This function is used to Calculate and Print the BMI in the kg/m2 units.
This function has been designed similarly to the previous function. The only difference in this function is that The Input must be entered in the lbs./in2 format.
This function has the order in which the above functions are called.
Submitted by Sahil Chutani (sahilchutani)
Download packets of source code on Coders Packet
Comments