School Admission Project2
School Admission Project2
Index
1. Introduction
2. Project Overview
3. Features
4. Technologies Used
5. System Design
6. Code Explanation
7. Implementation
8. Testing
9. Conclusion
1. Introduction
Education is one of the most essential aspects of human development...
2. Project Overview
3. Features
4. Technologies Used
5. System Design
6. Code Explanation
The project consists of a Python class `SchoolAdmission` that manages various operations.
7. Implementation
The system provides a menu-driven interface with options to register, pay fees, check status, etc.
8. Testing
To ensure the system works correctly, test cases were conducted for student registration, fee payment, and status
check.
9. Conclusion
This School Admission Package simplifies the student admission process, making it efficient and accessible.
import csv
class SchoolAdmission:
def __init__(self, filename='students.csv'):
self.filename = filename
self.fields = ['ID', 'Name', 'Age', 'Class', 'Fees Paid']
try:
with open(self.filename, 'x', newline='') as file:
writer = csv.writer(file)
writer.writerow(self.fields)
except FileExistsError:
pass
if found:
with open(self.filename, 'w', newline='') as file:
writer = csv.writer(file)
writer.writerows(students)
print("Fees paid successfully!")
else:
print("Student ID not found!")