0% found this document useful (0 votes)
9 views3 pages

School Admission Project2

The School Admission Package is a command-line system designed for student registration, fee payment, admission status checks, and data display, utilizing Python and CSV for data storage. It features a simple architecture with a menu-driven interface and includes functionalities for managing student information. The project aims to streamline the admission process, making it more efficient and accessible.

Uploaded by

itzsasuketamil
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)
9 views3 pages

School Admission Project2

The School Admission Package is a command-line system designed for student registration, fee payment, admission status checks, and data display, utilizing Python and CSV for data storage. It features a simple architecture with a menu-driven interface and includes functionalities for managing student information. The project aims to streamline the admission process, making it more efficient and accessible.

Uploaded by

itzsasuketamil
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/ 3

School Admission Package Project

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

This project is a command-line based system that allows:


- Student Registration
- Fee Payment
- Admission Status Check
- Student Data Display

3. Features

- Register a new student


- Store student details in a CSV file
- Track fee payment
- Confirm admission
- Display student information

4. Technologies Used

- Programming Language: Python


- Data Storage: CSV File Handling
- Modules Used: CSV, OS

5. System Design

The project follows a simple architecture:


1. Data Storage Layer
2. Logic Layer
3. Interface Layer

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

def register_student(self, student_id, name, age, student_class):


with open(self.filename, 'a', newline='') as file:
writer = csv.writer(file)
writer.writerow([student_id, name, age, student_class, 'No'])
print(f"Student {name} registered successfully!")

def pay_fees(self, student_id):


students = []
found = False
with open(self.filename, 'r') as file:
reader = csv.reader(file)
students = list(reader)

for row in students:


if row and row[0] == student_id:
row[4] = 'Yes'
found = True
break

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!")

You might also like