BMI Calculator In C Programming With Source Code

BMI Calculator In C Programming With Source Code

The BMI Calculator In C Programming is developed using C Programming Language, In this BMI Formula In C Program calculate your pound and inches and display the output if you are underweight, normal or overweight.

A BMI Calculator In C flow, first the system ask to the user to enter your weight in whole pounds, after that the system ask again to enter your height in whole inches, after you enter that two request the system will display your Body Mass Index and your weight status. either normal, under weight or overweight.

This BMI Calculator also includes a downloadable BMI Calculator C Program Code for free, just find the downloadable source code below and click to start downloading.

To start creating a BMI Calculator In C Programming, make sure that you have code blocks or any platform of C/C++ language installed in your computer.

ABOUT PROJECTPROJECT DETAILS
Project Name : BMI Calculator
Project Platform :C/C++
Programming Language Used:C Programming Language
Developer Name :itsourcecode.com
IDE Tool (Recommended):Dev-C++/Codeblocks
Project Type :Desktop Application
Database:Stores data in .DAT file
Upload Date and Time:November 9, 2020-2:57 am
BMI Calculator In C Programming With Source Code Information

Steps on how to create a BMI Calculator In C Programming With Source Code

  • Step 1: Create a new project.

    First open the code blocks IDE and click “create a new project“.
    create project

  • Step 2: Choose console application.

    Second click the “console application” and after that click “next“.
    BMI Calculator console application

  • Step 3: Choose C language.

    Third choose “C language” and click “next“.
    BMI calculator c console

  • Step 4: Name Your Project.

    Fourth name the project you’ve created and click “next” after that click “finish“.
    BMI Calculator Project Title

  • Step 5: The actual code.

    You are free to copy the given source code below or download the downloadable source code given.

Complete Source Code

#include <stdio.h>

int main()
{
    double wt_lb, ht_in, bmi, ht_ft;

    printf("Please enter your weight in whole pounds: ");
    scanf("%lf", &wt_lb);
    printf("Please enter your height in whole inches: ");
    scanf("%lf", &ht_in);

    ht_ft = ht_in/12;
    bmi = (703*wt_lb)/(ht_ft*ht_ft);

    if (bmi < 18.5) {
            printf("You have a BMI of %lf, and your weight status is underweight\n", bmi);
    } else if (bmi >= 18.5 && bmi < 25) {
        printf("You have a BMI of %lf, and your weight status is normal\n", bmi);
    } else {
        printf("You have a BMI of %lf, and your weight status is overweight\n", bmi);
    }
}

Downloadable Source Code

Summary

The whole project is designed in ‘C’ language and different variables and strings have been used for the development of this project. This mini project is easy to operate and understand by the users.

This simple project can enhance the knowledge of the beginners or the students to develop their skills in programming, also this project is easy to understand the module and their variables.

Related Articles

Inquiries

If you have any questions or suggestions about BMI Calculator In C Programming , please feel free to leave a comment below.

Leave a Comment