A Simple Calorie Calculator using Php

Language

This is a simple calorie calculator using php, this program calculates how many calorie you need each day in order to maintain your weight! This program uses swith case method. Your estimated daily metabolic rate is $gender "; echo "

This means that you need rouhgly $gender calories a day to maintain your current weight.

"; break; case 'Male': $gender=66 + (13.7 *$weight) + (5 * $height) - (6.8 * $age); echo "

Your estimated daily metabolic rate is $gender

"; echo "

This means that you need rouhgly $gender calories a day to maintain your current weight.

"; } ?>

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

I think there may be a mistake in your code for the male metabolic rate in the switch. This code really helped me thank you.

Add new comment