हेलो दोस्तों !
आज की इस Student fee management system using C language-[Hindi]-with source code पोस्ट में हम student fee मैनेजमेंट सिस्टम को C प्रोग्रामिंग की मदद से बनाना सीखेंगे। तो दोस्तों अगर आप स्टूडेंट फी मैनेजमेंट सिस्टम को बनाना सीखना चाहते है तो इस पोस्ट को अंत तक जरूर पढ़े। तो दोस्तों चलिए फिर बिना देरी के अपनी यह पोस्ट शुरू करते है।
इस पोस्ट के मुख्य टॉपिक्स निन्म है :-
- content of student fee management system.
- student fee management system source code.
1. content of student fee management system :-
दोस्तों सबसे पहले हम इस प्रोजेक्ट के बारे में जान लेते है की यह प्रोजेक्ट किस प्रकार बना है।
दोस्तों हमने इस प्रोजेक्ट को C प्रोग्रामिंग की मदद से विसुअल स्टूडियो कोड पर बनाया है। इस प्रोजेक्ट की मदद से हमने स्टूडेंट fee system को manage किया है। यह प्रोजेक्ट स्टूडेंट की टोटल फीस कितनी है कैलकुलेट करके बता देगा और साथ में फीस को भी जमा कर देगा है और स्टूडेंट की कुछ डिटेल्स भी दिखा देगा है।
इस प्रोजेक्ट के कुछ निन्म फंक्शन निन्म है जिन्हें हमने अलग -अलग कार्य के लिए बनाया है
- main function().
- createAccount function ().
- calculateFee function().
- depositFee function().
- seeDetails function().
1. main function() :-
तो दोस्तों इस प्रोजेक्ट में हमने main फंक्शन में एक मेनू बनाने की कोडिंग की है। जब आप प्रोग्राम को रन करेंगे तब सबसे पहले main फंक्शन अपना काम करेगा और आपके सामने मेनू प्रिंट करेगा और आपको उन मेनू में से किसी एक मेनू को चुनना होगा। फिर आगे की प्रोसेस दूसरा फंक्शन करेगा। main फंक्शन का काम केवल मेनू को हैंडल करना है।
2. createAccount function () :-
दोस्तों createAccount फंक्शन जब main फंक्शन से कॉल होगा तो यह यूजर या स्टूडेंट के लिए एक अकाउंट क्रिएट करेगा जिसकी मदद से स्टूडेंट आगे कोई भी काम कर पायेगा। अगर स्टूडेंट अपना अकाउंट नहीं बनता है तो स्टूडेंट कोई भी काम नहीं कर पायेगा क्योकि हमने इस प्रोजेक्ट में सभी काम के लिए यूजरनाम और पासवर्ड का यूज़ किया है। आप कोई भी काम यूजरनाम और पासवर्ड की मदद से ही कर पाएंगे।
3. calculateFee function() :-
दोस्तों calculateFee फंक्शन को जब main फंक्शन से कॉल किया जायेगा तो यह अपना काम स्टार्ट करेगा। यह फंक्शन स्टूडेंट की फीस को कैलकुलेट करेगा की स्टूडेंट की फीस कितनी और और उसे कितनी फीस जमा करनी है। यह फंक्शन स्टूडेंट के यूजरनाम और पासवर्ड की मदद से फीस को कैलकुलेट करेगा।
4. depositFee function() :-
दोस्तों depositFee फंक्शन को जब main फंक्शन से कॉल किया जायेगा तो यह अपना काम करना शुरू करेगा। यह फंक्शन स्टूडेंट के यूजरनाम और पासवर्ड की मदद से यह पता करेगा की आपकी कितनी फीस बाकी है और आपको कितनी फीस जमा करनी है। साथ में आप फीस भी जमा कर पाएंगे। यह फंक्शन केवल इतना ही काम करेगा।
5. seeDetails function() :-
दोस्तों seeDetails फंक्शन को जब हम main फंक्शन से कॉल करेंगे तो यह फंक्शन अपना काम स्टार्ट करेगा। यह फंक्शन स्टूडेंट के यूजरनाम और पासवर्ड की मदद से उस स्टूडेंट की कुछ डिटेल्स को शो करेगा। जिसमे उस स्टूडेंट का नाम और उसका पासवर्ड और साथ में उस स्टूडेंट की बाकि फीस भी शो करेगा। यह फंक्शन केवल इतना ही काम करेगा।
2. student fee management system source code :-
तो दोस्तों अब हम student fee management system के project का source code देख लेते है।
source code :-
#include< stdio.h >
#include< conio.h >
#include< stdlib.h >
#include< string.h >
int test=1;
int fees=0;
struct student
{
char studentName[20];
char stupassword[6];
}data;
void createAccount()
{
char ch;
int i;
fflush(stdin);
printf("Enter name:-");
gets(data.studentName);
fflush(stdin);
printf("Create password your password must be 6 characters\n");
printf("Enter password:-");
for(i=0;i < 6;i++)
{
ch=getch();
printf("*");
data.stupassword[i]=ch;
}
data.stupassword[i]='\0';
test=0;
printf("\n\nDear student your account has been successfully created\n");
printf("This is your user name:-%s\n",data.studentName);
printf("This is your password:-%s\n",data.stupassword);
}
void calculateFee()
{
int month;
int checkUsername=1;
int checkPassword=1;
char userName[20];
char password[10];
printf("If you want to know your total fees ");
printf("please login your account\n");
again:
fflush(stdin);
printf("Enter username:-");
gets(userName);
fflush(stdin);
printf("Enter password:-");
gets(password);
printf("Enter month:");
scanf("%d",&month);
if(test!=0)
{
printf("Sorry! you have not any account please create a account\n");
return;
}
else
{
checkUsername=strcmp(userName,data.studentName);
checkPassword=strcmp(password,data.stupassword);
if(checkUsername == 0&&checkPassword == 0)
{
for(int i=0;i < month;i++)
{
fees=fees+1000;
}
printf("\nYour total fees:-%d\n",fees);
}
else if(checkUsername!=0 && checkPassword!=0)
{
printf("Username and password is incorrect please try again\n");
goto again;
}
else if(checkUsername!=0 && checkPassword==0)
{
printf("Username is incorrect please try again\n");
goto again;
}
else if(checkUsername==0 && checkPassword!=0)
{
printf("Password is incorrect please try again\n");
goto again;
}
}
}
void depositFee()
{
int ammount;
int checkUsername=1;
int checkPassword=1;
char userName[20];
char password[10];
printf("If you want deposit fees ");
printf("Please login your account\n");
again:
fflush(stdin);
printf("Enter your user Name:-");
gets(userName);
fflush(stdin);
printf("Enter your password:-");
gets(password);
if(test!=0)
{
printf("Sorry! you have not any account please create a account\n");
return;
}
else
{
checkUsername=strcmp(userName,data.studentName);
checkPassword=strcmp(password,data.stupassword);
if(checkUsername==0 && checkPassword==0)
{
if(fees>0)
{
printf("\nYour total fees:-%d\n",fees);
printf("Please deposit fees\n");
printf("Enter ammount:-");
scanf("%d",&ammount);
fees=fees-ammount;
if(fees==0)
{
printf("Your all fees is deposited\n");
printf("Your total is fees:-%d\n",fees);
}
else
{
printf("Your total left is fees:-%d\n",fees);
printf("Please deposit soon\n");
}
}
else
{
printf("Before depositing fees ");
printf("Please calculate your total fees\n");
}
}
else if(checkUsername!=0 && checkPassword!=0)
{
printf("Username and password is incorrect please try again\n");
goto again;
}
else if(checkUsername!=0 && checkPassword==0)
{
printf("Username is incorrect please try again\n");
goto again;
}
else if(checkUsername==0 && checkPassword!=0)
{
printf("Password is incorrect please try again\n");
goto again;
}
}
}
void seeDetails()
{
int checkUsername=1;
int checkPassword=1;
char userName[20];
char password[10];
printf("If you want to see your details ");
printf("Please login your account\n");
again:
fflush(stdin);
printf("Enter your user name:-");
gets(userName);
fflush(stdin);
printf("Enter your password:-");
gets(password);
if(test!=0)
{
printf("\nSorry! you have not any account please create a account\n");
return;
}
else
{
checkUsername=strcmp(userName,data.studentName);
checkPassword=strcmp(password,data.stupassword);
if(checkUsername==0 && checkPassword==0)
{
printf("*******************************\n");
printf("| Your name :- %s\n",data.studentName);
printf("| Your password :- %s\n",data.stupassword);
printf("| Your fees :- %d\n",fees);
printf("*******************************\n");
}
else if(checkUsername!=0 && checkPassword!=0)
{
printf("Username and password is incorrect please try again\n");
goto again;
}
else if(checkUsername!=0 && checkPassword==0)
{
printf("Username is incorrect please try again\n");
goto again;
}
else if(checkUsername==0 && checkPassword!=0)
{
printf("Password is incorrect please try again\n");
goto again;
}
}
}
void main()
{
int ch;
do
{
printf("\nHello dear student here are 5 option\n");
again:
printf("* Press 1 for Create Account\n");
printf("* Press 2 for Calculate Total Fees\n");
printf("* Press 3 for Deposit Fees\n");
printf("* Press 4 for See All Student Details\n");
printf("* Press 5 for exit\n");
printf("Choose any option what do you want to do\n");
scanf("%d",&ch);
if(ch >=1 && ch <= 5)
{
switch(ch)
{
case 1:
createAccount();
break;
case 2:
calculateFee();
break;
case 3:
depositFee();
break;
case 4:
seeDetails();
break;
case 5:
exit(0);
break;
}
}
else
{
printf("Invalid option Please try again!\n");
goto again;
}
}while(ch!=5);
}
इन पोस्ट को भी पढ़े :-
Author :- तो दोस्तों अब हमारी यह Student fee management system using C language-[Hindi]-with source code पोस्ट ख़त्म होती है हम आशा करते है की आपको हमारी यह पोस्ट जरूर पसंद आई होगी। और आप स्टूडेंट फी मैनेजमेंट सिस्टम को बनाना सीख गए होंगे। तो दोस्तों आज के लिए बस इतना ही फिर मिलेंगे किसी और इंटरेस्टिंग पोस्ट में तब तक लिए अलविदा !
0 Comments
Do not enter any spam comments please.