0% found this document useful (0 votes)
4 views

C Program

Uploaded by

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

C Program

Uploaded by

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

C-PROGRAM

FOR ATTENDANCE
MAKING A ATTENDANCE REGISTER BY MAKING A PROGRAM IN C
A N AT T E N D A N C E S Y S T E M I N C I S A
SIMPLE CONSOLE-BASED PROJECT
T H AT A L L O W S A U S E R T O M A R K
AT T E N D A N C E A N D M A I N TA I N A

INTRODUCTI RECORD OF STUDENTS. IT CAN BE

ON USED IN SCHOOLS, COLLEGES, OR


A N Y O R G A N I Z AT I O N T O M A N A G E
AT T E N D A N C E D I G I TA L LY. B E L O W I S
A BASIC OUTLINE OF A C
P R O G R A M T H AT C A P T U R E S T H E
FUNCTIONALITY OF SUCH A
SYSTEM.
KEY-FEATURES :

•Adding New Records: Adding new entries for students/employees who are present.

•Viewing Records: Viewing the attendance list, which shows who attended on a particular day or in a specific timeframe.

•Modifying Records: Editing or updating attendance records if changes need to be made.

•Storing Data: Storing the attendance data in a file so that it can be retrieved later.

•Basic Reports: Simple analysis such as checking attendance percentage, total days attended, etc. 3
OUTLINE OF THE PROGRAM

o 1. Struct for Student

Data

o We will define a structure

to store details of each

student such as their roll

number, name, and


4
FUNCTIONS :
• add Student(): This function will allow the user to add students to the system.

• markAttendance(): This function allows marking a student as present or absent based on the

roll number.

• viewAttendance(): Displays the attendance record of all students.

• menu(): Displays the main menu and calls the appropriate function based on user choice. 5
MAIN
PROGRAM
LOGIC
The main logic will use a menu-driven approach
allowing the user to select an option (e.g., add a
student, mark attendance, or view attendance).

6
•Struct Definition:

EXPLANATION •The Student struct holds three fields: roll number, name,
and attendance status (0 for absent, 1 for present).

OF
THE PROGRAM •Array of Students:
•The array students[] stores all student records. The variable
student_count keeps track of how many students have been
added.
•add Student() Function:

•Prompts the user to enter the student's roll number and name. This data is then stored in the students[] array.

•markAttendance() Function:

•Takes the roll number as input, searches for the student, and marks them either present or absent.

•viewAttendance() Function:

•Displays a list of all students with their attendance status.

•menu() Function:

•Provides a simple interface for users to interact with the system by selecting options to add students, mark attendance, or view the attendance list.

7
CONCLUSION :

This basic C program for an attendance system can be expanded with more

features

such as saving records to a file, searching students by name, or generating

attendance reports.

The current program is a simple yet effective implementation

for small-scale use cases where basic attendance management is required.


8

You might also like