APSP2
APSP2
DANAPUR CANTT
Affiliated to the CBSE, New Delhi
School Affiliation No. 380001 School Code- 65038
A PROJECT REPORT ON
SUBMITTED TO
CERTIFICATE OF ORIGINALITY
This is to certify that the project report entitled Household Expenses Tracking submitted to
Central Board of Secondary Education for Informatics Practices Subject in partial fulfilment of
the requirement for the award of the degree of INTERMEDIATE IN SCIENCE from Army
Public School Danapur Cantt, is original work carried out by Ms / Mr Anurag Kumar with
The matter embodied in this project is genuine work done by the student and has not been
submitted whether to this School or to any other School / College / Institute / Department for the
………………………. ...…………………….
……………………….. ………………………..
……………………….. ………………………..
……………………….. ………………………..
ACKNOWLEDGEMENT
Before going into thick of things I would like to add a few heartfelt words for the
people who were part of this project in numerous ways. A large number of
teachers, students and computer lovers have made valuable suggestions
which have been incorporated in this work. It is not possible to acknowledge all
of them individually. I take this opportunity to express my profound gratitude
and ineptness to them.
I am thankful to my Teacher Mr. Raj Shekhar Suman of
Informatics Practices subject at Army Public School Danapur Cantt for his kind
cooperation, excellent suggestions, moral support and guidance for his
continuous help, assistance and valuable suggestion during this course of the
work.
At least we thank and praise the Almighty for his constant blessing and grace
through every step of our life.
INDEX
Introduction………………………………
….5
Features of the
project…………………….6
Source Code…….
…………………………...7
Sample
Output……………………………..11
Flow Chart
Hardware and Software
Requirements.12
Bibliography………………………………
….13
Introduction
Source Code
import pandas as pd
# Initialize an empty DataFrame
to store expenses
columns = ["Date", "Category",
"Description", "Amount"]
expenses_df =
pd.DataFrame(columns=columns)
# Example usage
if __name__ == "__main__":
while True:
print("\nHousehold Expense
Tracker")
print("1. Add Expense")
print("2. View All Expenses")
print("3. Filter Expenses by
Category")
print("4. Get Total Expenses")
print("5. Save Expenses to CSV")
print("6. Exit")
if choice == "1":
date = input("Enter date (YYYY-
MM-DD): ")
category = input("Enter
category (e.g., Food, Rent, Utilities): ")
description = input("Enter
description: ")
amount = float(input("Enter
amount: "))
add_expense(date, category,
description, amount)
elif choice == "2":
view_expenses()
elif choice == "3":
category = input("Enter
category to filter by: ")
filter_expenses_by_category(category)
elif choice == "4":
total_expenses()
elif choice == "5":
file_name = input("Enter file
name to save (e.g., expenses.csv): ")
save_expenses_to_csv(file_name)
elif choice == "6":
print("Exiting the tracker.
Goodbye!")
break
else:
print("Invalid choice. Please try
again.")
Sample Output
Hardware & Software Requirements
Minimum Hardware Requirement: -
Ram: 2GB
Processor: Quad-core processor with 3.0
GHz
Storage: 256 GB SSD
Software Requirement: -
Python
Pandas Library
Excel (for import/ export of CSV file)
BIBLIOGRAPHY
1. Informatic practices(NCERT)
2. www.Goggle.com
3. www.github.com