PYTHON
PYTHON
Report on
ASSISTANT PROFESSOR
DEPARTMENT OF CSG
College Code: K8
CERTIFICATE
………………….…………….. ………………………………………
Principal
…………………………….
CONTENTS
ABSTRACT
CHAPTER 1- INTRODUCTION
CHAPTER 5- ALGORITHM
CHAPTER 6- CODE
CHAPTER 7-OUTPUT
CHAPTER 9- CONCLUSION
3
ABSTRACT
4
Introduction
Literature survey
5
System analysis
3. Data Flow: Mapping the flow of data within the system, from input
(financial transactions) to processing (calculations) and output (reports).
7
System requirement
*Functional Requirements:*
3. *Budget Creation:* Enable users to create and customize budgets for various
expense categories.
4. *Goal Setting:* Allow users to set financial goals (e.g., savings targets, debt
reduction goals).
6. *Reports and Analytics:* Generate visual reports and charts to help users
analyze their spending habits.
7. *Reminders and Notifications:* Send alerts to users for approaching bill due
dates, spending limits, or goal achievements.
8
*Non-Functional Requirements:*
7. *Data Backup and Recovery:* Implement regular data backups and a reliable
recovery mechanism.
9
Algorithm
10
*Reporting Algorithm:*
1. Gather transaction data within a specified time frame.
2. Generate visual reports, such as pie charts or bar graphs, to represent spending
patterns.
3. Calculate averages, totals, and percentages for different expense categories.
11
CODE
class BudgetManagementSystem:
def __init__(self):
self.balance = 0
self.transactions = []
def get_balance(self):
return self.balance
def view_transactions(self):
for transaction in self.transactions:
print(transaction)
def main():
budget_system = BudgetManagementSystem()
while True:
print("1. Add Income")
print("2. Add Expense")
print("3. View Balance")
print("4. View Transactions")
print("5. Exit")
if choice == "1":
amount = float(input("Enter the income amount: "))
description = input("Enter a description: ")
12
budget_system.add_income(amount, description)
elif choice == "2":
amount = float(input("Enter the expense amount: "))
description = input("Enter a description: ")
budget_system.add_expense(amount, description)
elif choice == "3":
print(f"Current Balance: ${budget_system.get_balance()}")
elif choice == "4":
print("Transactions:")
budget_system.view_transactions()
elif choice == "5":
print("Exiting the budget management system.")
break
else:
print("Invalid choice. Please select a valid option.")
if __name__ == "__main__":
main()
13
OUTPUT
14
15
System testing
1. Functional Testing:
Transaction Entry: Test the ability to input different types of transactions
(income, expenses) and verify accurate data entry.
- Expense Categorization: Validate that expenses are correctly categorized
based on predefined rules or algorithms.
- Budget Creation: Confirm that users can create, modify, and delete budget
categories and amounts.
- Goal Setting: Test the process of setting financial goals and tracking progress
toward them.
- Automated Transaction Sync: Ensure that data is accurately synchronized
from external sources (e.g., bank accounts).
- Reporting: Verify the accuracy of generated reports, charts, and analytics.
2. User Interface Testing:
- Usability: Test the user interface for intuitive navigation, clear labels, and
user-friendly design.
- Responsive Design: Ensure the system functions well on different devices and
screen sizes.
3. Security Testing:
16
- Authentication:Test user registration, login, and password reset functionalities
for security vulnerabilities.
- Data Privacy: Verify that user data is securely stored and transmitted
(encryption).
4. Performance Testing:
- Load Testing:Assess how the system performs under expected and peak loads
of users and transactions.
- Response Time: Measure the time it takes for different operations to complete.
5. Compatibility Testing:
- Browser Compatibility: Test the system on various web browsers to ensure
consistent functionality.
-Device Compatibility: Verify that the system works well on different devices
(desktop, tablet, mobile).
6. Data Integrity Testing:
- Data Validation: Validate that data inputs are properly validated and prevent
erroneous entries.
- Data Accuracy: Check if the calculations and data displayed match the actual
input.
7. Integration Testing:
-API Integration: Test the integration with external APIs for transaction
syncing.
- Component Interaction: Verify that different components of the system
interact
seamlessly.
8. User Acceptance Testing (UAT):
17
-Real User Testing:Involve actual users to test the system and provide feedback.
- Usability and Satisfaction: Assess whether the system meets useexpectations
Conclusion
18
contribute to greater financial awareness, discipline, and success, whether on an
individual level or within a business environment
19