हेलो दोस्तों !
आज की इस Student attendance project in C programming in Hindi पोस्ट में हम student attendance का project C programming की मदद से बनाना सीखेंगे। तो दोस्तों अगर आप स्टूडेंट अटेंडेंस प्रोजेक्ट को अच्छी तरह समझना चाहते है तो इस पोस्ट को अंत तक जरूर पढ़े।
इस पोस्ट के मुख्य टॉपिक्स निन्म है :-
- function of student attendance project.
- student attendance project source code.
- attendance project video.
1. function of student attendance project :-
- student को add करना।
- स्टूडेंट को remove करना।
- स्टूडेंट की attendance लेना।
- स्टूडेंट की attendance चेक करना।
1. student को add करना :-
2. स्टूडेंट को remove करना :-
3. स्टूडेंट की attendance लेना :-
4. स्टूडेंट की attendance चेक करना :-
2. student attendance project source code :-
project source code :-
#include< stdio.h >
#include< stdlib.h >
#include< string.h >
char stuName[20][30];
int presentAttendance[20]={0};
int absentAttendance[20]={0};
int indexNumber=0;
void checkAttendance()
{
int i;
printf("\n Total Present | Total Absent\n");
for ( i = 0; i < indexNumber; i++)
{
printf("%s",stuName[i]);
printf(" %d %d\n",presentAttendance[i],absentAttendance[i]);
}
}
void addStudent()
{
int i,num,add;
if (indexNumber==0)
{
printf("Enter how many students you want to add: ");
fflush(stdin);
scanf("%d",&num);
for ( i = 0; i < num; i++)
{
printf("\nEnter %d student name to add in attendance ragister: ",i+1);
fflush(stdin);
gets(stuName[i]);
indexNumber++;
}
}
else
{
printf("Enter how many students you want to add: ");
fflush(stdin);
scanf("%d",&num);
add=indexNumber+num;
for ( i = indexNumber; i < add; i++)
{
printf("\nEnter %d student name to add in attendance ragister: ",i+1);
fflush(stdin);
gets(stuName[i]);
indexNumber++;
}
}
}
void removeStudent()
{
char name[30];
printf("Enter student name to remove: ");
fflush(stdin);
gets(name);
for (int i = 0; i < indexNumber; i++)
{
if (strcmp(name,stuName[i])==0)
{
for (int j = i; j < indexNumber; j++)
{
strcpy(stuName[j],stuName[j+1]);
presentAttendance[i]=presentAttendance[i+1];
absentAttendance[i]=absentAttendance[i+1];
}
indexNumber--;
printf("\n%s student is removed\n",name);
break;
}
else if(i==indexNumber-1)
{
printf("This name is not exits\n");
}
}
}
void takeAttendance()
{
int i;
char ch;
printf("\nEnter Y for present and N for absent\n");
for ( i = 0; i < indexNumber; i++)
{
repeate:
printf("%d. %s is present: ",i+1,stuName[i]);
fflush(stdin);
scanf("%c",&ch);
if (ch=='Y'||ch=='y')
{
presentAttendance[i]+=1;
}
else if (ch=='N'||ch=='n')
{
absentAttendance[i]+=1;
}
else
{
printf("Invalid character Try again\n");
goto repeate;
}
}
}
void main()
{
int choose;
do
{
printf("\n**********Main Menu***********\n");
printf("Enter 1 for add student\n");
printf("Enter 2 for take attendance\n");
printf("Enter 3 for check attendance\n");
printf("Enter 4 for remove student\n");
printf("Enter 5 for exit\n");
printf("Please choose any menu: ");
fflush(stdin);
scanf("%d",&choose);
switch (choose)
{
case 1:
addStudent();
break;
case 2:
takeAttendance();
break;
case 3:
checkAttendance();
break;
case 4:
removeStudent();
break;
case 5:
exit(0);
break;
}
} while (choose!=5);
}
दोस्तों इस प्रोजेक्ट का आउटपुट जब आप इसे अपने सिस्टम में रन करेंगे। तभी आप इस प्रोजेक्ट के आउटपुट को अच्छी तरह समझ पाएंगे।
3. attendance project video :-
वीडियो देखने के लिए यहाँ क्लिक करें।
इन पोस्ट को भी पढ़े :-
Author :- तो दोस्तों अब हमारी यह Student attendance project in C programming in Hindi पोस्ट ख़त्म होती है। हम आशा करते है की आपको हमारी यह पोस्ट जरूर पसंद आई होगी और आप इस प्रोजेक्ट को अच्छी तरह समझ गए होंगे। तो दोस्तों आज के लिए बस इतना ही फिर मिलेंगे ऐसी ही किसी और इंटरेस्टिंग पोस्ट में तब तक के लिए अलविदा !
0 Comments
Do not enter any spam comments please.