Archive

Posts Tagged ‘bmi calculator’

Personal Fitness & Weight Analyzer in C

July 20th, 2011 No comments

This C Program Analyzes if you're underweight, overweight or obese and accordingly suggests you to gain or lose the right amount of weight in the right period of time.

#include <stdio.h>
#include <conio.h>
#include <math.h>

main()
{
int weight;

printf("Welcome to your Weight Analyser\n");
printf("To begin, Enter your current weight in pounds(lbs)\n\n");
scanf("%d", &weight);

printf("You currently have %d calories inside you.. In other words, If you lose %d calories, you'll dissapear altogether ;) Just Sayin!\n\n", weight*(3500), weight*(3500));

int height_ft, height_in;

printf("Now, to calculate your ideal weight, Enter your height.. How many feet?)n");
scanf("%d", &height_ft);
printf("And inches?nn");
scanf("%d", &height_in);

int bmi=(703*weight)/pow(((height_ft)*12+(height_in)),(2));

if(bmi<18.5)
{
printf("You're underweight, You need to gain weight.. How does that feel?\n");
}

else if(18.5<bmi && bmi<25)
{
printf("You don really need to lose any weight, Your height and weight are in proportion! :)\n");
}

else
{
if(25<bmi && bmi<30)
{
printf("You're overweight! :) Let's see what I can do you make you live longer and happier :).. \n\n");
}
else
{
printf("How do you even breathe? You're obese and sick! But I can help.\n\n");
}

int ideal_weight=(24.9/703)*(pow(((height_ft)*12+(height_in)),(2)));

printf("Considering your height will not increase anymore, For your ideal weight, You should reduce to %d \n\n", ideal_weight);
printf("Which means you'll need to shed %d pounds\n\n", weight-ideal_weight);
printf("For healthy weight loss, you should take %d days to do this by losing 500 calories each day\n\n", 7*(weight-ideal_weight));
printf("To do this, make sure that the calories you burn everyday are 500 more than the total calories you take in everyday.\n Good Luck \n");

}
getch();

}

Download the Application (.exe)

The Real Way to Lose Weight

June 26th, 2010 No comments

There are numerous websites selling stupid equipment, drugs, & weight loss plans to "help" people loose the extra pounds. But do they really work? And if they do, are they good for your health? Well, depending upon your body & requirements, one of these plans may work out for you, but you should not ignore its side effects & long time effects.

The only real & natural way to lose weight is to take in less calories than you are currently taking. The amount of calories you need to cut down depends upon the amount of weight you want to loose. Just think of the calorie not only as a unit of food but also a unit of your weight.(though not all calories in a food product come from fat)

So here's how you do it-

Step 1-Calculate your BMI and see where you stand.

Step 2-Find out your daily calorie requirements if you want to reduce your weight from X to Y. You can do that here-Calorie Calculator

Step 3-Check your diet. Take in only your daily requirements as calculated above. Not less, not more.
To do this-Keep a list, write down the calorie intake after each meal.

Once you lose 7500 calories(over whatever time-1 week, preferably)-you loose 1 kg.
(1 kg=7500 calories). To make things easy, stop taking oil & sugar.

You can use caloriecount.about.com to find out what amount of calories each food product has. And remember, there is no shortcut to losing weight. All those 1 day fat loss programs are bullshit.