0% found this document useful (0 votes)
7 views14 pages

Untitled Document

This document introduces a Python-based health management system featuring a BMI Calculator, Calorie Tracker, and Water Intake Tracker, aimed at promoting healthier lifestyles. Each program provides personalized guidance to help users manage their weight, calorie intake, and hydration levels effectively. The project emphasizes the importance of technology in health monitoring and encourages individuals to adopt better health habits.

Uploaded by

nidu9559
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views14 pages

Untitled Document

This document introduces a Python-based health management system featuring a BMI Calculator, Calorie Tracker, and Water Intake Tracker, aimed at promoting healthier lifestyles. Each program provides personalized guidance to help users manage their weight, calorie intake, and hydration levels effectively. The project emphasizes the importance of technology in health monitoring and encourages individuals to adopt better health habits.

Uploaded by

nidu9559
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Health is one of the most important aspects of

human life. With the modern lifestyle becoming


increasingly sedentary, individuals are at a higher
risk of developing health problems such as
obesity, dehydration, and chronic illnesses.
Technology can play a vital role in promoting
healthier habits. This project introduces a
Python-based health management system,
comprising two simple yet effective programs: a
Body Mass Index (BMI) Calculator, A calorie
tracker and a Water Intake Tracker. Both
programs aim to encourage users to adopt a
healthier lifestyle by providing personalized
guidance.
Program 2: Calorie Tracker
Overview:
The Calorie Tracker helps users log their meals
and keeps track of their daily calorie consumption.
Users can set a daily calorie goal and monitor
their progress to maintain a balanced diet.

Program code:
def calorie_tracker():
print("Welcome to the Calorie Tracker!")
print("This program helps you monitor your daily calorie
intake and ensures you stay within your goal.")

try:
daily_goal = int(input("Enter your daily calorie goal
(e.g., 2000): "))
consumed = 0
print("Start logging your meals!")
while consumed < daily_goal:
try:
meal_name = input("Enter the name of the
meal/snack: ")
calories = int(input(f"Enter the calories in
{meal_name}: "))
if calories <= 0:
print("Calories must be a positive number. Try
again.")
continue
consumed += calories
print(f"Added {calories} calories from
{meal_name}. Total so far: {consumed} calories.")

if consumed < daily_goal:


print(f"You have {daily_goal - consumed}
calories remaining for the day.")
else:
print("Congratulations! You've reached your
calorie goal for the day!")
except ValueError:
print("Invalid input. Please enter numeric values
for calories.")
print("Thank you for using the Calorie Tracker!")
except ValueError:
print("Invalid input. Please enter a numeric value for
the daily goal.")

calorie_tracker()

Output:
Working:
This program prompts the user to set a daily
calorie goal. They can log their meals/snacks by
entering their names and calorie content. The
program keeps a running total of the calories
consumed and informs the user of their progress.
When the goal is reached, it congratulates the
user and ends the tracking for the day.
Program 3: Water Intake Tracker
Overview:
Staying hydrated is crucial for good health. The
Water Intake Tracker ensures users consume
sufficient water throughout the day and provides
encouraging feedback as they progress toward
their hydration goal.

Programe code:
def water_intake_tracker():
print("Welcome to the Water Intake Tracker!")
print("This program will help you monitor your daily water intake
and remind you to stay hydrated.")
daily_goal = 2000 # Recommended daily water intake in
milliliters
consumed = 0

while consumed < daily_goal:


try:
intake = int(input(f"Enter the amount of water you just
drank in milliliters (e.g., 250): "))
if intake <= 0:
print("Please enter a positive number.")
continue
consumed += intake
print(f"Total water consumed: {consumed} ml out of your
daily goal of {daily_goal} ml.")

if consumed < daily_goal:


print("Keep going! You're doing great!")
else:
print("Congratulations! You've met your daily water
intake goal!")
except ValueError:
print("Invalid input. Please enter a numeric value.")
finally:
print(f"Remaining water intake to reach your goal:
{max(daily_goal - consumed, 0)} ml.")
print("Thank you for using the Water Intake Tracker!")

water_intake_tracker()
Working:
This program allows users to track their water
intake throughout the day. With each entry, it
updates the total consumed and motivates the
user to meet their daily hydration goal of 2000
milliliters.
How These Programs Are Useful
The BMI Calculator, Calorie Tracker, and Water
Intake Tracker are three programs included in
this project, each designed to promote healthier
lifestyles in unique ways. These tools address
some of the most common challenges individuals
face in managing their health, providing simple,
personalized solutions.

1. BMI Calculator
The Body Mass Index (BMI) Calculator is a
foundational tool for assessing an individual’s
weight relative to their height. It is widely used to
categorize weight into various ranges, such as
underweight, normal weight, overweight, or
obese. Here’s how the program is useful:
● Awareness of Weight Status: Many people
are unaware of whether their weight falls
within a healthy range. This program provides
an easy way to calculate BMI and understand
one’s weight category.
● Personalized Health Advice: Based on the
BMI category, the program offers tailored
recommendations, such as consulting a
dietitian, maintaining current habits, or
seeking medical advice.
● Goal Setting: Knowing one’s BMI helps
individuals set realistic weight-related goals,
whether it’s gaining, maintaining, or losing
weight.

2. Calorie Tracker
The Calorie Tracker is another essential program
designed to help users monitor and control their
daily calorie consumption. It complements the
BMI Calculator by enabling users to take
actionable steps based on their BMI results.
● Supports Weight Management: Whether the
goal is to gain, lose, or maintain weight,
tracking calories is crucial for achieving the
desired result.
● Enhances Nutritional Awareness: Logging
meals and their calorie content encourages
users to make healthier food choices.
● Prevents Overeating or Undereating: The
program ensures users stay within their
calorie limits, avoiding both overeating and
undereating, which can lead to health issues.
● Motivational: By showing progress toward
the daily goal, the program motivates users to
remain consistent in their efforts.
● Customizable: Users can adapt the program
to include calorie goals based on their activity
level, age, or health conditions.
3. Water Intake Tracker
Hydration is a fundamental yet often overlooked
aspect of health. The Water Intake Tracker
ensures users meet their daily hydration needs,
providing several benefits:
● Prevents Dehydration: Staying hydrated is
crucial for energy, concentration, and overall
well-being. This program helps users track
their water intake to avoid dehydration.
● Establishes Healthy Habits: By regularly
recording water consumption, users are
encouraged to make hydration a consistent
habit.
● Promotes Physical Health: Proper hydration
improves digestion, skin health, and kidney
function, and regulates body temperature.
● User-Friendly and Motivational: The
program’s encouraging messages make the
process of tracking water intake enjoyable and
rewarding.
Why These Programs Are Valuable
Together, these three programs form a
comprehensive health management toolkit. Each
program addresses a specific aspect of health:
1.BMI Calculator: Helps users understand their
weight status and take informed actions.
2.Calorie Tracker: Encourages users to
maintain a balanced diet and meet their
nutritional goals.
3.Water Intake Tracker: Promotes regular
hydration and overall well-being.
These tools are practical, easy to use, and
designed to foster healthier habits in users’ daily
lives. By integrating technology into health
monitoring, this project makes it simpler for
individuals to take control of their health,
contributing to a longer, healthier, and more
fulfilling life.
INFORMATICS PRACTICE
PROJECT FILE
2024-25

HEALTHCARE WITH PYTHON

BY: Muhannad Zubair and


Mohammed shahid

Board Exam NO:___________


Name Of Teacher: MRs Jancy

You might also like