/*******************************************************************************
 * Aiden Stannard // CS1A // Chapter 4 Homework: Challange 5# // 9/26/2026
 * 
 * Calculate BMI
 * 
 * This program recieves a height in inches and the weight in pounds of an
 * individual, calculates the BMI, and outputs if the BMI is overweight,
 * underweight, or within the healthy range.
 * 
 * Inputs: 
 * Enter your weight in pounds: 
 * Now enter your height in inches: 
 * 
 * Output:
 * Your BMI of ___ is considered (overweight,underweight, or healthy)
 ******************************************************************************/
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	float weight;
	float height;
	float BMI;
	
	cout << "Enter your weight in pounds: " << endl;
	cin >> weight;
	cout << "Now enter your height in inches: " << endl;
	cin >> height;
	
	BMI = weight * 703.0 / pow(height,2);
	
	if (BMI >= 18.5 && BMI <= 25)
		cout << "Your BMI of " << BMI << " is within the healthy range" << endl;
	else if (BMI < 18.5)
		cout << "Your BMI of " << BMI << " is considered underweight" << endl;
	else
		cout << "Your BMI of " << BMI << " is considered overweight\n";
	return 0;
}