SlideShare a Scribd company logo
PROJECT CODE
FOR TURBO C:
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<stdlib.h>
#include<ctype.h>
FILE *fp;
struct student
{
char snum[13];
char fname[20];
char sname[20];
char ccode;
}record;
voidTemp1(void);
voidtwolinebox(intx1,inty1,intx2,inty2)
{
int x,y;
gotoxy(x1,y1);printf("%c",201);
gotoxy(x2,y1);printf("%c",187);
for(y=y1+1;y<y2;y++){
gotoxy(x1,y);printf("%c",186);
gotoxy(x2,y);printf("%c",186);
}
gotoxy(x1,y2);printf("%c",200);
gotoxy(x2,y2);printf("%c",188);
for(x=x1+1;x<x2;x++){
gotoxy(x,y1);printf("Í");
gotoxy(x,y2);printf("Í");
}
gotoxy(x1+1,y1+1);
}
voidprintxy(intx,inty,charstring[])
{
gotoxy(x,y);printf("%s",string);
}
voidcenter(inty,charstring[])
{
intx=(80-strlen(string)+1)/2;
gotoxy(x,y);printf("%s",string);
}
voidCreate(void)
{
char opt;
center(21,"WARNING!!!");
center(22,"Youare about tocreate a new file");
center(23,"Thiswill eraseall recordsinthe file...");
center(24,"Are yousure youwantto proceed?[Y/N] ");
opt=getche();opt=toupper(opt);
if(opt=='Y')
{
fp=fopen("Group4.txt","w");
center(24," ");
center(24,"Recordsuccessfullyremoved!");
}
getch();
fclose(fp);
}
voidAdd(void){
char opt;
fp=fopen("Group4.txt","a");
clrscr();
Temp1();
gotoxy(19,8); scanf("");gets(record.snum);
gotoxy(19,10);scanf("");gets(record.fname);
gotoxy(19,12);scanf("");gets(record.sname);
gotoxy(19,14);record.ccode=getche();
record.ccode=toupper(record.ccode);
gotoxy(5,22);clreol();printxy(79,22,"º");
fprintf(fp,"%s%s%s %c",record.snum,record.fname,record.sname,record.ccode);
gotoxy(5,21);clreol();center(21,"Recordsuccessfullyadded!");
printxy(79,21,"º"); gotoxy(53,22);delay(1000);
center(22,"Pressanykeytogo to mainmenu...");getch();
fclose(fp);
}
voidTemp1(void)
{
twolinebox(2,6,79,20);
twolinebox(2,20,79,24);
twolinebox(2,2,79,24);
center(4,"ADDRECORD");
printxy(6,8,"Studentno:");
printxy(6,10,"FirstName:");
printxy(6,12,"LastName:");
printxy(6,14,"Course code:");
center(22,"Course code:[A]-CompSci,[B]-forInfoTech,[anykey]-S.E");
gotoxy(19,7);
}
voidList(void)
{
intcount=0,i,x=0,page=1,CS=0,IT=0,Serv=0;
fp=fopen("Group4.txt","r");
clrscr();
center(2,"UNIVERSITYOFGUJRAT");
center(3,"LAHORECAMPUS");
center(5,"COMPUTERSCIENCEDEPARTMENT");
printxy(10,7,"Record Student# Name Course");
for(i=1;i<80;i++){ gotoxy(i,8);puts("Í");/*Alt-205*/}
while(fscanf(fp,"%s%s%s %c",&record.snum,&record.fname,&record.sname,&record.ccode)!=EOF)
{
if(count!=0&&count%5==0){ printxy(5,23,"Pressanykeytocontinue...");getch();x=0;
for(i=10;i<=24;i++){gotoxy(1,i);clreol();}
page++;
}
gotoxy(70,4);printf("Page%d",page);
gotoxy(13,10+x);printf("%d",count+1);
gotoxy(19,10+x);printf("%s",record.snum);
gotoxy(37,10+x);printf("%s%s",record.fname,record.sname);
gotoxy(62,10+x);
switch(record.ccode){
case 'A': printf("CompSci");CS++;break;
case 'B': printf("InfoTech");IT++;break;
default:printf("S.E");Serv++;break;
}
x++;
count++;
}
printxy(25,17,"TOTAL");
gotoxy(15,18);printf("CompSci:%d",CS);
gotoxy(15,19);printf("InfoTech:%d",IT);
gotoxy(15,20);printf("S.E : %d",Serv);
printxy(5,23,"Pressanykeytogoto mainmenu...");
getch();
fclose(fp);
}
voidQuit(void){
clrscr();
twolinebox(2,2,79,24);
center(5,"PROGRAMMED");
center(6,"BY");
center(8,"REHAN IJAZ");
center(9,"ROLLNOF15-09");
delay(5000);
exit(1);
fclose(fp);
}
voidErr_mess(void){
sound(1000);
center(22,"InvalidInput!");
delay(1000);
nosound();
}
voidmain(){
char choice;
textbackground(GREEN);
textcolor(BLUE);
do{
clrscr();
twolinebox(29,6,51,8);
twolinebox(20,5,60,18);
twolinebox(2,20,79,25);
twolinebox(2,2,79,25);
center(7,"MAIN MENU");
printxy(30,9,"Press:");
printxy(30,11,"[A]-AddRecord");
printxy(30,12,"[B]-ListRecord");
printxy(30,13,"[C]-Delete Record");
printxy(30,14,"[D]-QuitProgram");
printxy(30,16,"Enteryourchoice...");gotoxy(50,16);
choice=getch();choice=toupper(choice);
switch(choice){
case 'C': Create();break;
case 'A': Add();break;
case 'B': List();break;
case 'D': Quit();break;
default:Err_mess();break;
}
}while(choice!='D');
}

More Related Content

PPTX
C & Python Introduction
DOCX
Circular queue
DOCX
Lab loop
DOCX
Include
DOCX
1 (1)
DOCX
basic programs in C++
PDF
VTU Network lab programs
C & Python Introduction
Circular queue
Lab loop
Include
1 (1)
basic programs in C++
VTU Network lab programs

What's hot (16)

PDF
C mcq practice test 2
PDF
C++ Programming - 1st Study
PDF
Pattern printing-in-c(Jaydip Kikani)
PDF
Clock For My
PDF
Insertion sort
PDF
C Prog. - Structures
KEY
Blocks+gcd入門
DOCX
Computer graphics programs in c++
PDF
C Prog - Strings
PDF
Prime number program in c
DOCX
2 d rotation
DOCX
Code for program to draw a circle using mid point circle algorithm in c
PDF
Bcsl 033 data and file structures lab s5-2
C mcq practice test 2
C++ Programming - 1st Study
Pattern printing-in-c(Jaydip Kikani)
Clock For My
Insertion sort
C Prog. - Structures
Blocks+gcd入門
Computer graphics programs in c++
C Prog - Strings
Prime number program in c
2 d rotation
Code for program to draw a circle using mid point circle algorithm in c
Bcsl 033 data and file structures lab s5-2
Ad

Viewers also liked (12)

DOCX
Porposal on Student information management system
DOC
Student information-system-project-outline
DOC
Student Management System
PPTX
Student information system project
PPT
Student Information System ( S.I.S. )
PDF
Restaurent management system
PPTX
Student Management System Project Abstract
PPTX
Student management system
PPT
Data dictionary
DOCX
Student database management system
PPT
Student management system
RTF
Project report-on-student-information-management-system-php-mysql
Porposal on Student information management system
Student information-system-project-outline
Student Management System
Student information system project
Student Information System ( S.I.S. )
Restaurent management system
Student Management System Project Abstract
Student management system
Data dictionary
Student database management system
Student management system
Project report-on-student-information-management-system-php-mysql
Ad

Similar to Project code for Project on Student information management system (20)

DOCX
Computer graphics lab assignment
PPTX
Tharun prakash.pptx
PDF
C programms
DOC
C basics
PDF
Computer graphics lab manual
PPSX
Functions in c
PPSX
Concepts of C [Module 2]
PPT
operators in c language programming to improve c skills
PDF
C Programming lab
DOCX
Cd practical file (1) start se
PDF
C Prog - Pointers
DOC
'C' language notes (a.p)
PDF
C programs Set 2
DOCX
Ejercicios de programacion
DOCX
Computer Graphics Lab File C Programs
DOCX
Practical File of C Language
DOCX
Itp practical file_1-year
PDF
C Prog. - Strings (Updated)
PDF
C lab programs
Computer graphics lab assignment
Tharun prakash.pptx
C programms
C basics
Computer graphics lab manual
Functions in c
Concepts of C [Module 2]
operators in c language programming to improve c skills
C Programming lab
Cd practical file (1) start se
C Prog - Pointers
'C' language notes (a.p)
C programs Set 2
Ejercicios de programacion
Computer Graphics Lab File C Programs
Practical File of C Language
Itp practical file_1-year
C Prog. - Strings (Updated)
C lab programs

More from REHAN IJAZ (13)

DOCX
How to make presentation effective assignment
DOCX
Programming Fundamentals lecture 8
PPTX
Introduction to artificial intelligence lecture 1
DOCX
Programming Fundamentals lecture 7
PPTX
Programming Fundamentals lecture 6
PPTX
Programming Fundamentals lecture 5
DOCX
Programming Fundamentals lecture 4
PPTX
Programming Fundamentals lecture 3
PPTX
Programming Fundamentals lecture 2
PPTX
Programming Fundamentals lecture 1
PDF
Career development interviews
DOC
importance of Communication in business
PPTX
Project on Student information management system
How to make presentation effective assignment
Programming Fundamentals lecture 8
Introduction to artificial intelligence lecture 1
Programming Fundamentals lecture 7
Programming Fundamentals lecture 6
Programming Fundamentals lecture 5
Programming Fundamentals lecture 4
Programming Fundamentals lecture 3
Programming Fundamentals lecture 2
Programming Fundamentals lecture 1
Career development interviews
importance of Communication in business
Project on Student information management system

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Pre independence Education in Inndia.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Types and Its function , kingdom of life
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
master seminar digital applications in india
PDF
Classroom Observation Tools for Teachers
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharma ospi slides which help in ospi learning
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Computing-Curriculum for Schools in Ghana
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Supply Chain Operations Speaking Notes -ICLT Program
RMMM.pdf make it easy to upload and study
2.FourierTransform-ShortQuestionswithAnswers.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
GDM (1) (1).pptx small presentation for students
Microbial disease of the cardiovascular and lymphatic systems
Pre independence Education in Inndia.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
TR - Agricultural Crops Production NC III.pdf
master seminar digital applications in india
Classroom Observation Tools for Teachers
Anesthesia in Laparoscopic Surgery in India
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharma ospi slides which help in ospi learning
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Computing-Curriculum for Schools in Ghana
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Final Presentation General Medicine 03-08-2024.pptx
PPH.pptx obstetrics and gynecology in nursing
Supply Chain Operations Speaking Notes -ICLT Program

Project code for Project on Student information management system