Date post: | 06-Apr-2018 |
Category: |
Documents |
Upload: | rocky-ishu |
View: | 218 times |
Download: | 0 times |
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 1/21
By- sakshi saini
1
LOVELY PROFESSIONAL UNIVERSITY
TERM PAPER OF FOUNDATION OFCOMPUTING
Topic: -UNIVERSITY MANAGEMENT SYSTEM
SUBMITTED TO:-MRS. MAMTA SHARMA
SUBMITTED BY:-MS. SAKSHI SAINI
LPU ROLL NO:-RK2104B37
SECTION:-K2104
REGN. NO: 11103920
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 2/21
By- sakshi saini
2
ACKNOWLEDGEMENT
There are many who helped me with
this project, and i want to thank
them all from the core of my Heart. I
owe special words of thanks to my
Teacher MRS. MAMTA
SHARMA for their vision, thoughtfulcounseling and encouragement at
every step of the project. I am also
thankful to the teachers of the
Department for giving me the best of
knowledge and guidance throughoutthe project.
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 3/21
By- sakshi saini
3
INTRODUCTIONThe program development process
includes three important stages,
namely, program design, programcoding and program testing. All the
three stages contribute to the
production of high quality program. In
UNIVERSITY MANAGEMENT SYSTEM´ we have done system design, source
coding, and program testing andadded many more features to
facilitate the user with the best. We
have given the user the facility to
enter the Students record and see
whether the user is provided with the
complete information. We can improve the efficiency of the
system, thus overcome the drawbacks
of the existing system.
y Less human error ·
y Strength and strain of registers
and papers can be reduced·
y High security ·
y Data consistency ·
y Easy to handle·
y Easy data updating
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 4/21
By- sakshi saini
4
««LIMITATIONS:«..
1.. Here, the whole program has been
made keeping in mind that there areemployees who are responsible for
all input operations.
2.. In RMS option you will not get any
feedback in the future as the program
lacks data file handling.
3.. Are informations are storedtemporarily and they will die once you
come out of the output screen.
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 5/21
By- sakshi saini
5
««. SOURCE CODE ««.
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<process.h>
struct staff
{
char name[20];
int code;
int age;
char sub[20];
int exp;
char post[20];
}f[3];
struct student
{
char name[20];
int regd;
int roll;
int attd;
int age;
char sub[30][5];
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 6/21
By- sakshi saini
6
int mark[5];
float avg;
char grade;
int schl;
} s[3];
void main()
{
clrscr();
int ch;
int ans;
textattr(7+BLINK);
textbackground(1);
for(int x=0;x<=30;x++)
{
gotoxy(x,12);
{
printf(" ****** WELCOME TO UNIVERSITY MANAGEMENT SYSTEM *********");
}
delay(200);
clrscr();
}
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 7/21
By- sakshi saini
7
textcolor(7);
printf("\n\n==================================================");
printf("\n********** LOVELY PROFESSIONALUNIVERSITY ************");
printf("\n====================================================\n\n");
printf("\n\n\n UMS is one of the most oftenly
used website by the students of \n lovely professional university \n");
printf("\n On this website students & staff canlogin and get all information regarding their daily curriculum ");
printf("\n like seeing \n their result, feestructure, attendance, important announcementsand many more \n");
printf(" \n\n\n press any key to move to the nextpage \n");
getch();
clrscr();
start:
clrscr();
printf("\n\n MAIN MENU \n");
printf("\n 1) INPUT DATA ");
printf("\n 2) DISPLAY DATA");
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 8/21
By- sakshi saini
8
printf("\n 3) EXIT ");
printf("\n Enter your choice ");
scanf("%d",&ch);
switch(ch)
{
case 1:
s1: clrscr();
printf(" \n input menu === ");
printf(" \n input for \n");
printf("\n 1) STAFF ");
printf("\n 2) STUDENT ");
printf("\n 3) RMS ");
printf("\n 4) GO BACK TO MAIN MENU ");
printf("\n enter your choice ");
scanf("%d",&ch);
switch(ch)
{
case 1:
for(int i=0;i<2;i++)
{
printf("\n enter name: ");scanf("%s",f[i].name);
printf("\n enter code: ");scanf("%d",&f[i].code);
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 9/21
By- sakshi saini
9
printf("\n enter subject that the teacherteaches: ");
scanf("%s",f[i].sub);
printf("\n enter age: ");scanf("%d",&f[i].age);
printf("\n enter experience of work in years: "); scanf("%d",&f[i].exp);
printf("\n press enter to input more \n");
getch();clrscr();
}
printf(" \n press enter to back to input-menu\n");
getch();
goto s1;
case 2:
for(i=0;i<2;i++)
{
printf("\n enter name: ");
scanf("%s",s[i].name);
printf("\n enter registration number: ");scanf("%d",&s[i].regd);
printf("\n enter age: ");
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 10/21
By- sakshi saini
10
scanf("%d",&s[i].age);
printf("\n input your attendance inpercentage \n");
scanf("%d",&s[i].attd);
printf("\n enter name of the 5 subjects andtheir respective marks: ");
for(int j=1;j<=5;j++)
{
printf("\n");
scanf("%s\t %d",s[i].sub[j],&s[i].mark[j]);
}
printf("\n press enter to input more \n");
getch();
clrscr();
}
printf(" \n press enter to go back to input -menu \n");
getch();
goto s1;
case 3:char type[30],sb[40],det[100];
printf("\n 1)COMPLAIN \t 2) ENQUIRY \t3)HOSTEL LEAVE \n");
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 11/21
By- sakshi saini
11
printf("\n enter your choice \n");scanf("%d",&ch);
switch(ch)
{
case 1:
printf("\n Put thetype:(academics,hostel,exams,mess): ");scanf("%s",type);
printf("\n input the subject:");scanf("%s",sb);
printf("\n DETAILS : "); scanf("%s",det);
printf("\n\n your complain has beenregistered...\n press enter to back to input menu:");
getch();
goto s1;
case 2:
printf("\n Put the type ofenqiry:(academics,hostel,exams,mess): ");scanf("%s",type);
printf("\n input the subject:");scanf("%s",sb);
printf("\n DETAILS : "); scanf("%s",det);
printf("\n\n your enquiry has beenregistered...u will get the feedback soon \n pressenter to back to input menu: ");
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 12/21
By- sakshi saini
12
getch();
goto s1;
case 3:
char lvd[10],cmd[10];
printf("\n\n===== hostel leaveapplication=====");
printf("\n enter the date of leaving (dt-mnth-year):");
scanf("%s",lvd);
printf("\n enter the coming date(dt-mnth- year): ");
scanf("%s",cmd);
printf("\n\n your leave has beenregistered ... press enter to go to input menu \n");
getch();
goto s1;
}
case 4:
goto start;
}
case 2:
clrscr();
int x=0;
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 13/21
By- sakshi saini
13
char n[20]={"sakshi"};
char name[20];
gotoxy(0,25);
{
printf("\n enter the password and take care ofcase\n\n");
}
for(int i=0;i<6;i++)
{
name[i]=getch();
printf("*");
}
for(i=0;i<6;i++)
{
if(n[i]==name[i])
{
x++;
}
}
if(x==6)
{
printf("\n password is correct \n");
delay(600);
goto t1;
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 14/21
By- sakshi saini
14
}
else
{
printf("\n password is not correct \n");
delay(600);
goto start;
}
t1:
clrscr();
printf("\n display menu ");
printf("\n 1)Staff's profile ");
printf("\n 2)student's profile");
printf("\n 3)student's result ");
printf("\n 4)fee structure ");
printf("\n 5)Go back to main menu ");
printf("\n enter your choice ");
scanf("%d",&ch);
switch(ch)
{
case 1:
for(int i=0;i<2;i++)
{
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 15/21
By- sakshi saini
15
printf("\n name: %s",f[i].name);
printf("\n code:%d",f[i].code);
printf("\n subject that the teacher
teaches:%s",f[i].sub);
printf("\n age: %d",f[i].age);
printf("\n experience of work in years:%d",f[i].exp);
if(f[i].exp<4)
printf("\n post= asst. professor ");
else
if(f[i].exp>=4&&f[i].exp<8)
printf("\n post= professor ");
else
if(f[i].exp>=8&&f[i].exp<16)
printf("\n post= lecturer");
else
if(f[i].exp>=16)
printf("\n post= HOD ");
printf("\n press enter to see more \n");
getch();
clrscr();
}
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 16/21
By- sakshi saini
16
printf(" \n press enter to go back to display-menu \n");
getch();
goto t1;
case 2:
for(i=0;i<2;i++)
{
printf("\n enter name: %s",s[i].name);
printf("\n enter registration number:
%d",s[i].regd);
printf("\n enter age: %d",s[i].age);
if(s[i].attd>=75)
printf("\n\n student is elligible for theexamination ");
else
if(s[i].attd<75)
printf("\n\n student is not eligible for theexamination");
printf("\n name of the 5 subjects student isstudying: \n\n");
for(int j=1;j<=5;j++)
{
printf(" ");
printf("%s",s[i].sub[j]);
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 17/21
By- sakshi saini
17
}
printf("\n\n\n press enter to see more \n");
getch();
clrscr();
}
printf(" \n press enter to go back to display-menu \n");
getch();
goto t1;
case 3:
printf(" \n ======== STUDENT RESULT========== \n");
for(i=0;i<2;i++)
{
int total=0;
for(int j=1;j<=5;j++)
{
total+=s[i].mark[j];
}
s[i].avg=total/5.0;
if(s[i].avg>=90)
s[i].grade='A';
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 18/21
By- sakshi saini
18
else
if((s[i].grade<90)&&(s[i].grade>=75))
s[i].grade='B';
else
if((s[i].grade<=75&&s[i].grade>=40))
s[i].grade='C';
else
if((s[i].grade<40))
s[i].grade='D';
printf("\n %s grade =%c",s[i].name,s[i].grade);
printf("\n\n\n Remarks according to grade===\n");
printf("\n grade A = excellent ");
printf("\n grade B = good ");
printf("\n grade C = re-appear(poor)");
printf("\n grade D = backlog ");
printf("\n press enter to see more \n");
getch();
clrscr();
}
printf("\n press any key to go to display-menu");
goto t1;
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 19/21
By- sakshi saini
19
case 4:
printf("\n ====== THE FEE STRUCTURE====== \n");
for(i=0;i<2;i++)
{
if(s[i].grade=='A')
printf(" \n %s is awarded with ascholarship of Rs 50,000 for thesemester",s[i].name);
else
if(s[i].grade=='B')
printf(" \n %s is awarded with a
scholarship of Rs 30,000 for the semester",s[i].name);
else
if(s[i].grade=='C')
printf(" \n %s is awarded with noscholarship ",s[i].name);
elseif(s[i].grade=='D')
printf(" \n %s is awarded with noscholarship for the semester ",s[i].name);
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 20/21
By- sakshi saini
20
printf("\n\t\t Actual fees for a semester without scholarship is Rs 70,000 \n");
printf("\n press enter to see more \n");
getch();
clrscr();
}
printf("\n press any key to go to sub- menu");
goto t1;
case 5:
goto start;
}
}
getch();
}
8/3/2019 Sakshi Saini Rk2104 b37 Word File Ums
http://slidepdf.com/reader/full/sakshi-saini-rk2104-b37-word-file-ums 21/21
By- sakshi saini
21
BIBLIOGRAPHY
1.. www.google.com
2.. www.encyclopedia.com3,, let us c--- book
4.. programming in c by ashok n, kamthane