0% found this document useful (0 votes)
49 views18 pages

Student Attendance Management System Final

The document is a project report on the Student Attendance Management System (SAMS) developed by Shlok Manish Joshipura for the academic year 2024-25. It outlines the system's objectives, key features, system design, source code, and requirements, emphasizing its role in automating attendance tracking in educational institutions. The project aims to enhance efficiency, data security, and user experience while addressing the limitations of traditional manual attendance systems.

Uploaded by

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

Student Attendance Management System Final

The document is a project report on the Student Attendance Management System (SAMS) developed by Shlok Manish Joshipura for the academic year 2024-25. It outlines the system's objectives, key features, system design, source code, and requirements, emphasizing its role in automating attendance tracking in educational institutions. The project aims to enhance efficiency, data security, and user experience while addressing the limitations of traditional manual attendance systems.

Uploaded by

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

ST.

KABIR SCHOOL (DIA), THALTEJ

ACADEMIC YEAR: 2024-25

PROJECT REPORT ON
Student Attendance Management System (SAMS)

ROLL NO. : 34

NAME : Shlok Manish Joshipura

CLASS : XII

SUBJECT : Computer Science

SUBJECT CODE : 083

PROJECT GUIDE : Mrs. Amisha Dalal


1
Contents:

ACKNOWLEDGEMENT................................................................................................................4

STUDENT ATTENDANCE MANAGEMENT SYSTEM (SAMS)......................................................5

INTRODUCTION........................................................................................................................6

OBJECTIVES OF THE PROJECT.............................................................................................7

KEY FEATURES........................................................................................................................8

SYSTEM DESIGN....................................................................................................................10

SOURCE CODE......................................................................................................................11

OUTPUT...................................................................................................................................13

DATA DICTIONARY................................................................................................................16

ADVANTAGES AND LIMITATIONS........................................................................................17

HARDWARE AND SOFTWARE REQUIREMENT...................................................................18

BIBLIOGRAPHY......................................................................................................................19

2
ACKNOWLEDGEMENT

I would like to express my sincere gratitude to all those who have helped and supported me
throughout the completion of my project on “Student Attendance Management System”.

First and foremost, I would like to thank my Computer Science teacher, Mrs. Amisha Dalal, for
providing valuable guidance and constant encouragement during the entire process. Her
insightful feedback and suggestions played a crucial role in shaping the project.

I also extend my gratitude to my school principal, Mrs. Alpana Ma’am, for providing the
necessary resources and infrastructure that facilitated the successful development of this
project.

Special thanks to my friends and classmates for their support, and for discussing ideas and
helping me troubleshoot various issues encountered during the coding phase.

Finally, I would like to thank my parents for their unwavering support, understanding, and
encouragement throughout my academic journey.

This project would not have been possible without the help of all these individuals, and I am
truly grateful for their contributions.

3
STUDENT ATTENDANCE
MANAGEMENT SYSTEM
(SAMS)

4
INTRODUCTION

The Student Attendance Management System is a software application designed to automate


the process of tracking and managing student attendance in educational institutions.

Traditionally, attendance records have been maintained manually, which can be time-
consuming, error-prone, and difficult to manage, especially as the size of the institution grows.

This project aims to address these challenges by creating an efficient and user-friendly solution
using modern technologies.

Developed using Python as the programming language and MySQL as the database
management system, the project offers a simple interface for administrators and teachers to
record, view, and manage student attendance. The system allows administrators to add new
students, update their attendance status, and view attendance records based on student IDs
and dates. It automates the process of storing attendance information, making data retrieval
quick and accurate.

By leveraging the power of databases, the system provides a robust and scalable solution to
keep track of student attendance in an organized and secure manner. This application is
particularly useful for educational institutions that need to maintain consistent and reliable
attendance records for a large number of students.

5
OBJECTIVES OF THE PROJECT

The main objectives of the Student Attendance Management System project are:

1. To automate attendance tracking: To eliminate the need for manual record-keeping


and streamline the process of managing student attendance.

2. To create an easy-to-use system: To provide an intuitive interface for administrators


and teachers to add and view attendance records with minimal effort.

3. To ensure accurate and reliable data: By using a database to store attendance records,
the system ensures that all data is stored securely and is easily retrievable without any
loss or corruption.

4. To support the generation of attendance reports: The system should allow for querying
and viewing of attendance data, which can be useful for generating reports or checking
trends over time.

5. To provide a scalable solution: The system should be capable of handling a growing


number of students and attendance records without compromising on performance or
efficiency.

6. To enhance administrative efficiency: By automating the attendance process, the


system reduces the time spent on manual tasks, allowing administrators to focus on
other important responsibilities.

7. To provide data security: To ensure that student data and attendance records are
stored securely and are accessible only to authorized users.

6
KEY FEATURES

The Student Attendance Management System is a comprehensive solution aimed at


automating the attendance tracking process in educational institutions. This system is designed
to simplify the task of managing student attendance by leveraging modern technologies such as
Python and MySQL. The proposed system offers a user-friendly interface, efficient data
management, and enhanced security features.

The key features of the system are mentioned below:

1. User Authentication:

o The system provides secure access through a login page where authorized users
(e.g., administrators) must enter a valid username and password to access the
system. This feature ensures that only authorized personnel can manage
attendance data.

2. Add New Student Records:

o The system allows administrators to add new student records to the database.
Each student will have a unique student ID, along with their name, and
attendance status for specific dates (e.g., "Present" or "Absent").

o The administrator can add attendance for multiple students on different dates,
which is recorded and stored in the MySQL database.

3. Record and Update Attendance:

o The system enables the entry of attendance data for each student.
Administrators or teachers can record whether a student is present or absent on
any given day.

o Attendance information is updated in real-time and stored securely in the


database, ensuring that records are always up-to-date.

7
4. View Attendance Records:

o The system allows users to view the attendance records for any student based
on their unique student ID.

o Attendance data is fetched from the database and displayed in a user-friendly


format, showing the student’s name, date, and status (Present/Absent).

5. Efficient Database Management:

o The attendance records are stored in a MySQL database, providing a structured,


scalable, and secure way to manage large volumes of data.

o Data can be easily queried, updated, or deleted when necessary. The database
structure includes tables for students and attendance logs, ensuring that all
related data is connected and easily accessible.

6. Data Security:

o The system ensures data security by implementing proper authentication and


access control. The database and application are protected from unauthorized
access, safeguarding student data.

o Only authenticated administrators or teachers can modify attendance records,


reducing the risk of data manipulation or tampering.

8
SYSTEM DESIGN

1. User Authentication:
o Secure login system for administrative access.
o Admin credentials (username and password) required to access the portal.

2. Add Student Attendance:


o Allows the administrator to add new attendance records.
o Inputs include:
 Student ID
 Name
 Date of attendance (DD-MM-YYYY)
 Attendance status (Present/Absent)
o Data is stored in a MySQL database.

3. View Attendance Records:


o Facilitates the retrieval of attendance records for a specific student.
o Records include:
 Student ID
 Name
 Date
 Attendance status
o Displays all matching records from the database.

4. Exit Option:
o Allows the administrator to exit the system safely after completing tasks

9
SOURCE CODE

File name: sams.py

import mysql.connector

# Connecting to the MySQL database


def connect_to_db():
return mysql.connector.connect(
host="localhost",
user="root",
password="Sh4#5h4nk",
database="attendance"
)

# Code to add a new student to the database


def add_student():
db = connect_to_db()
cursor = db.cursor()
student_id = int(input("Enter ID: "))
name = input("Enter student name: ")
date = input("Enter date (DD-MM-YYYY): ")
status = input("Enter status (Present/Absent): ")
cursor.execute("INSERT INTO attendance (id, name, date, status)
VALUES (%s, %s, %s, %s)", (student_id, name, date, status))
db.commit()
print("Student added successfully!")
db.close()

# Code to check the attendance of a student


def check_attendance():
db = connect_to_db()
cursor = db.cursor()
student_id = int(input("Enter ID: "))
cursor.execute("SELECT * FROM attendance WHERE id = %s",
(student_id,))
result = cursor.fetchall()
if result:
for row in result:
print(f"ID: {row[0]}, Name: {row[1]}, Date: {row[2]},
Status: {row[3]}")
else:
print("No attendance record found for this ID.")
db.close()

10
# Main function for the portal
def main():
print("St. Ann's School, Bopal \nWelcome to the Student Attendance
Portal")
username = input("Enter username: ")
password = input("Enter password: ")

if username == "admin" and password == "password":


while True:
print("\n1. Add New Student")
print("2. Check Attendance")
print("3. Exit")
choice = int(input("Enter your choice: "))
if choice == 1:
add_student()
elif choice == 2:
check_attendance()
elif choice == 3:
print("Exiting the portal. Goodbye!")
break
else:
print("Invalid choice. Please try again.")
else:
print("Invalid username or password!")

# Run the main function


if __name__ == "__main__":

11
OUTPUT

1. Unsuccessful login due to incorrect Username or Password

2. Successful login

3. Adding a New Student record

4. Checking the Attendance record of a student

12
5. Error Message on entering an Invalid Choice

6. Viewing the Database Tables in MySQL

7. Viewing the Table Information

13
8. Viewing the Records of the Attendance Table

14
DATA DICTIONARY

Table Name: attendance

Field Name Data Type Size Description


id INT - Unique identifier for each student record.
name VARCHAR 30 Full name of the student.
date VARCHAR 30 The date on which attendance is recorded.
status VARCHAR 30 Attendance status of the student (e.g.,
Present/Absent).

15
ADVANTAGES AND LIMITATIONS

ADVANTAGES

1. Ease of Use:

o Simple and intuitive interface for admins.

2. Efficiency:

o Eliminates manual effort and reduces errors.

3. Secure Data Management:

o Sensitive information is protected using best practices like environment variables


and parameterized queries.

4. Quick Retrieval:

o Search and display attendance records in seconds.

LIMITATIONS

1. The system supports only basic authentication and could be enhanced with role-based
access.

2. No graphical user interface (GUI); the current system runs in a terminal.

3. Limited to a single admin account; no multi-user functionality .

16
HARDWARE AND SOFTWARE REQUIREMENT

The following are the requirements necessary to run the Student Attendance Management
System effectively:

HARDWARE REQUIREMENTS

1. Processor:
o Any modern processor capable of running Python-based applications (e.g., Intel
Core i3 or higher).
2. Memory (RAM):
o Minimum 2 GB for smooth execution of scripts and database operations.

3. Storage:
o At least 50 MB free space for the Python program and MySQL database files.

SOFTWARE REQUIREMENTS

1. Operating System:
o Windows 10/11, macOS, or Linux (any distribution supporting Python and
MySQL).
2. Python Environment:
o Python 3.8 or later installed on the system.
3. Database System:
o MySQL Server 5.7 or later to host the attendance database.
4. Python Libraries:
o mysql-connector-python for database connectivity.

17
BIBLIOGRAPHY

Computer Science with Python - Class XI, XII By: Sumita Arora

18

You might also like