Class 12 Investigatory CS Project UNIVERSITY MANAGEMENT IN C++

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 36

UNIVERSITY MANAGEMENT IN C++

CONTENTS:
1.Problem Definition.
2.Problem Analysis:
 Availability.
 Timeliness.
 Accuracy.
 Completeness.
 Meaningful and action oriented.
 Commensurate.
 Main Goal of the Project.
3.Tools/Platforms Used.
4.Flowchart.
5.Complete Structure of The University
Management System.
6.Source Code.
7.Output screen.
8.Bibliography.

1.Problem Definition:
University System is one of the most common and the
first applications implemented in any higher educational
organization.
In University a large amount of data is processed and
the results are used in running an organization.
The University Management System Project maintains
the list of colleges and their different streams. It also
maintains the examination and the result department
with a proper menu system.
This project maintains the detailed records of all the
colleges and students as well as the examination and the
result department.
The University data file should contain the following
information:
In this section the project keeps the record of college id,
college name, college location, college running the
stream and the degree the colleges are running and
maintains the information in college.datdata.
Details of the student information:
In this section the project keeps the record of student id,
studentname, student address, parent details, contact
number, degree stream, std code.

2.Problem analysis:
Man is a social animal and has endless wants and needs.
The days of the primitive man are gone. Gone too are
the days when survival meant just food, clothing and
shelter.
Technology has changed the ways we live. The
invention of currency has ushered in a new breed of
humans. Most business transactions are clinched by
fiscal exchanges.
To sustain them, people put hours of work, an average
adult spends approximately one-third of his or her life
on working. Business is booming. A considerable
portion of the expenditure of the business is on the
compensation given to its employees. Therefore, it
becomes necessary for an organization to maintain
perfect and accurate record. For this we need a
computerised University Management System.
Perfectness is the key to work. It is very important from
the point of view of the organization as well as for the
student that the recordmaintained about college and the
student is error free. So, speeder and accurate
maintenance of the University becomes a matter of
importance. Automation does this to a larger extend.
As we know that today is the world of computers and it
has entered in each and every phase of everyday life.
Computer plays an important role in day-to-day work.
Hence today is the day of computers.
The use of computers in the field of management of
information is well known tous, the use of computers in
the University Management System provides following
benefits over manual system:
1)Availability:
It gives us that information which was not provided by
the manual system.
2)timeliness:
Provides information(output) in less time.
3)Accuracy:
Using computer, we will get the information more
accurately rather than the manually calculated and
recorded information.
4)Completeness:
Computer never gives us incomplete information. We
will always get the complete and full information using
the computer.
5)Meaningful and action Oriented:
Whatever the work we will provide the computer to do,
computer works only on that particular work. It means
computers always do a meaningful and action Oriented
work for the user.

6)Commensurate:
Whatever the format(output) is designed for a particular
program by the computer it should be in such a way that
it corelates with the format of the other information
groups.
“A University Management System handles all the
information necessary for handling a College and a
student” This system must develop a paperwork
necessary for Colleges and the students. The system
must maintain files on individual colleges and student
record, provide up to date information, print output on
information related to University.
In addition, the system must have checks and controls
that prevent fraudulent use of payroll funds.
The University management processes data related to
activities of colleges and students. So, University
management system is very important for a university.
Needless to say, careful planning and suitable backup
measures are absolutely necessary while automating
these activities. During the selection process, it is
worthwhile to review our present universities policies.
Improved benefits over before taking the whole
question of automating the process.
A good University management system will process
input data faster and reduce clerical time, while:
 Assuring management control in making certain
that the output is correct.
 Generally useful reports at a time or no
incremental costs.
 Project is handled with oops concept.
7)Main Goal of the Project:
The main goal of the project is to obtain a complete and
a correct information. Because University Management
department of an organization maintains a record of:
 The Colleges.
 The students.
 The examination and Result.
To do that, the department:
 Prepares the record for each department, showing
the total number of students and colleges.
 Keeps track of any modification necessarily related
to the students and colleges.
 Produces regular reports for the Organization
giving the total information required.
Management needs to know the details like:
department, number of colleges, their streams, the
degree courses run by them and their location.
Management also needs to know the same information
about the students. So, in order to know them the
following classes and functions are used:
 Classes used:

 1)College attribute:
college_id,college_name,college_address,

college_description,college_address.

2)Student attribute:

student_id,student_college_id,

student_name,student_mobile,student_email,

student_username,student_password,

student_address.

3)Class attributes:

class_id,class_student_id, class_name,

Class_room,class_type,class_description.

4)Faculties attribute:

Faculty_id,faculty_teacher_id,faculty_name,
Faculty_room,faculty_type,faculty_description.

5)Courses attributes:

Course_id,course_student_id,course_registration,

Course_name,course_type,course_year,

Course_description.

6)Registration attributes:

Registration_id,registration_student_id,registration_cou

rse_id,registration_name,registration_type,

Registration_number,registration_date,

Registration_description.

 Functions used:
1)Colleges:

addcolleges(),editcolleges(),deletecolleges(),

Updatecolleges(),savecolleges(),searchcolleges().

2)Students:

Addstudent(),editstudent(),deletestudent(),

updatestudent(),savestudents(),searchstudents().

3)Class:

Addclasses(),editclasses(),deleteclasses(),

updateclasses(),saveclasses(),searchclasses().

4)Faculties:

Addfaculties(),editfaculties(),deletefaculties(),

updatefaculties(),savefaculties(),searchfaculties().

5)Courses:
Addcourses(),editcourses(),deletecourses(),

updatecourses(),savecourses(),searchcourses().

6)Registration:

Addregistration(),editregistration(),

deleteregistration(),updateregistration(),

saveregistration(),searchregistration().

3.Tools/Platforms and languages Used:


Hardware configuration:
Processor: intel® core™ i5-8250U CPU@1.60GHz
1.80GHz.
Main Memory:8.00 GB RAM
HDD:307 GB
FDD:
LAPTOP-U3C4KVDP
2.4G Wireless mouse.
Software configuration:
System type: windows 10 home single language.
Programming language: C++.
Documentation: MS word 2016.
Backup media: Hard Disk Backup.

4.The flowchart of this project is as follows:


START

1. ENTRY

2. DISPLAY

3. EDIT

4. ENQUIRY

5. EXIT

IS ENTRYSE

Y CH=1? CTION

Y IS DISPLAY
CH=1? SECTION

IS ENQUIRY
Y CH=1?

IS MODIFY
N CH=1? SECTION

N PERFOR-
IS
CH=1? MANCE

STOP
5.Complete Structure of the University Management

System:
6.Source Code:
//universe.cpp: University Management System

#include <iostream.h>

#include <fstream.h>

#include <process.h>

#include <string.h>

#include <stdio.h>

#include <ctype.h>

#include <conio.h>

#include <stdlib.h>

#include <iomanip.h>

typedef char option[45] ;

const int row = 10, col = 10 ;

int scan ,ascii; //To hold the special character for moving the prompt in menu

//To display the main menu options

option a[] = {"Entry","Display","Enquiry","Modification","Performance","Exit"} ;

//To display the ENTRY menu option.

option b[] = {"College","Student","ExamForm","ExamSchedule","Result","Back To PreviousMenu"};

//To display the DISPLAY menu option

option c[] = {"College","Student","ExamForm","ExamSchedule","Result","Back To Previous Menu"};

//To display the ENQUIRY menu option

option d[] = {"College","Student","back To Previous Menu"} ;

//To display the MODIFICATION menu option

option e[] = {"College","Student","Back To Previous Menu"} ;

//To display the PERFORMANCE menu option

option f[] = {"Foundation","Back To Previous Menu"} ;

/* Class Definitions */

//Function used for screening

class main_menu
{

private:

int j, done ;

public:

void normal(int x, int y, char *str) ;

void reverse(int x, int y, char *str) ;

void box(int x1, int y1, int x2, int y2) ;

char menu() ;

void control_menu() ;

void entry_menu() ;

char e_menu() ;

void display_menu() ;

char d_menu() ;

void enquiry_menu() ;

char enqu_menu() ;

void modification_menu() ;

char mod_menu() ;

void performance_menu() ;

char perform_menu() ;

void welcome_screen() ;

};

/*Class member for drawing boxes*/

class shape

public:

void line_hor(int, int, int, char) ;

void line_ver(int, int, int, char) ;

void box(int, int, int, int, char) ;

};

//class contain all the information of college

class college
{

private:

void add_to_file(int, char [], char [], char[], char[], char[]) ;//function to add record void
box_for_display(int) ;//function to draw box

void box_for_enquirycollege(int) ; //function to draw box

ntcoll_id ;

char coll_name[30], coll_loc[30], coll_str[30], coll_degI[30], coll_degII[30] ;

public:

void new_college(void) ; //function for entering information of a new college

void display_list(void) ; //function for displaying all the colleges and their information

void college_enquiry(void) ; //function for enquirying about aparticular college

void college_modification(void) ; //function for modifying the college details

void clear(int, int) ; //function for performing screen clear function

int found_college(int) ; //function to find the college in college.dat

char *return_name(int) ; //function for validation entry of college name

char *return_loc(int) ; //function for validation entry of college location

char *return_str(int) ; //function for validation entry of college stream

char *return_degI(int) ; //function for validation entry of college


degree(b.a/b.sc/b.com)

char *return_degII(int) ; //function for validation entry of college degree(m.a/m.sc)

void display(int) ; //function for displaying college information

void modify_college(int, char [], char [], char [], char [], char []) ; //funcion for college modification

int last_collid(void) ; //function to find the last college id in college.dat

int recordno(int) ; //function to find the record number in college.dat

};

class student

private:

void add_to_file(int, char[], char[], char[], char[], char[], char[], char[], char[], char[], char[]) ;

void box_for_display(int) ; //function to draw box

void box_for_enquirystudent(int) ;//function to draw box

int stu_id ;
char stu_name[30], stu_fname[30], stu_add[30], stu_city[30], stu_state[30], stu_zip[30],
stu_contact[30], stu_code[30], stu_strm[30], stu_deg[30] ;

public:

void new_student(void) ; //function for entreing information of new student

void display_list(void) ; //function to display student details

void enquiry_student(void) ; //function to display particular student detail

void student_modification(void) ;//function to modify student information

void clear(int, int) ; //function for clearing screen

int found_student(int) ; //function to find the student in student.dat

char *return_name(int) ; //function for validation entry of student name

void examdisplay(int, int) ; //function to display information

void resultdisplay(int) ; //function to display information

char *return_fname(int) ; //function for validation entry of student father name

char *return_address(int) ; //function for validation entry of address

char *return_stream(int) ; //function for validation entry of stream

char *return_city(int) ; //function for validation entry of city

char *return_state(int) ;//function for validation entry of state

char *return_zip(int) ; //function for validation entry of zip

char *return_contact(int) ; //function for validation entry of contact number

char *return_code(int) ; //function for validation entry of std code

char *return_degree(int) ; //function for validation entry of degree

void display(int) ; //function to display

//function to modify the student details

void modify_student(int, char[], char[], char[], char[], char[], char[], char[]) ;

int last_stuid(void) ; //function to find the last student id in student.dat

int recordno(int) ; //function to find the record number in student.dat

};

class examinfo

Private:

char stu_deg[30], stu_name[30], stu_fname[30], stu_add[30], stu_strm[30], sd1[30], ed1[30],


sm1[30], em1[30], sy1[30], ey1[30], deg[30] ;
int stu_id, examform_id, hp1, hp2, hp3, hp4, hp5, hp6, hp7, hp8, s1, s2, com, gk ;

int p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16 ;

//function to add record

void add_to_file_schedule(char[], char[], char[], char[], char[], char[], char[]) ;

public:

void exam_formentry() ; //function for the form fill up

void exam_scheduleentry(void) ; //function for the entry of the schedule

void display_list(void) ; //function to display

void display_schedulelist(void) ;//function to display

void result_entry(void) ; //function for the entry of the result

void resultdisplay_list(void) ; //function for the result display

char *return_degname(int) ; //function for the valid entry of degree

int last_examformid(void) ; //function to find the last id

void clear(int, int) ; //function for clearing screen

void display(int) ; //function to display

//function to add record

void add_to_file_form(int, int, char[], char[], char[], char[], char[]) ;

//function to add record

void add_to_filebaI(int, char[], char[], int, int, int, int, int) ;

//function to add record

void add_to_filebaII(int, char[], char[], int, int, int, int, int) ;

//function to add record

void add_to_filebaIII(int, char[], char[], int, int, int, int, int) ;

//function to add record

void add_to_filemaI(int, char[], char[], int, int, int, int, int, int, int, int) ;

//function to add record

void add_to_filemaII(int, char[], char[], int, int, int, int, int, int, int, int) ;

};

class performance

public:
void foundation(void) ;};

// Display Screen */

void main_menu::welcome_screen()

int i, col = 100, maxCol = 100 ;

setfillstyle(1, BLACK) ;

bar(0, 0, 639, 479) ;

setcolor(BLUE) ;

for (i = 0; i< 400; ++i, ++col, ++maxCol) {

line(col, 150, maxCol, 350) ;

delay(6) ;

setfillstyle(7, 1) ;

bar(100, 150, 500, 350) ;

setcolor(WHITE) ;

outtextxy(180, 200, "University Management System") ;

setcolor(GREEN) ;

outtextxy(216, 230, "Jitender Bhardwaj") ;

outtextxy(220, 250, "DOEACC 'A' Level") ;

setcolor(WHITE) ;

outtextxy(150, 270, "T r i n e t r a D a t a L i n k s") ;

setcolor(GREEN) ;

outtextxy(225, 290, "Reg. No. 411966") ;

setcolor(WHITE) ;

outtextxy(180, 370, "Press any key to continue . . .") ;

getch() ;

/*Function to display all the menu prompt message from the pointer array

of option a[]*/

void main_menu::normal(int x, int y, char *str)

{
gotoxy(x, y) ;

cprintf("%s", str) ;

//Function to move the cursor in the menu prompt with reverse video color

void main_menu::reverse(int x, int y, char *str)

textcolor(5+143);

textbackground(WHITE);

gotoxy(x, y);

cprintf("%s", str);

textcolor(GREEN);

textbackground(BLACK);

void main_menu::box(int x1, int y1, int x2, int y2)

for(int col = x1; col < x2; col++)

gotoxy(col, y1) ;

cprintf("%c", 196) ;

gotoxy(col, y2) ;

cprintf("%c", 196) ;

for(int row = y1; row < y2; row++)

gotoxy(x1, row) ;

cprintf("%c", 179) ;

gotoxy(x2, row) ;

cprintf("%c", 179) ;

gotoxy(x1, y1) ;

cprintf("%c", 218) ;
gotoxy(x1, y2) ;

cprintf("%c", 192) ;

gotoxy(x2, y1) ;

cprintf("%c", 191) ;

gotoxy(x2, y2) ;

cprintf("%c", 217) ;

char main_menu::menu()

clrscr() ;

textcolor(22) ;

box(20, 6, 65, 20) ;

box(18, 4, 67, 22) ;

textcolor(5+143) ;

gotoxy(28, 5) ;

textbackground(WHITE) ;

cprintf("University Management System") ;

textbackground(BLACK) ;

textcolor(22) ;

for(int i = 1; i< 6; i++)

normal(32, i + 10, a[i]) ;

reverse(32, 10, a[0]) ;

i = done = 0 ;

_setcursortype(_NOCURSOR) ;//change the cursor type

do

int key = getch() ;

switch(key)

case 72: normal(32, i + 10, a[i]) ;

i-- ;
if(i == -1)

i=5;

reverse(32, i + 10, a[i]) ;

break ;

case 80: normal(32, i + 10, a[i]) ;

i++ ;

if(i ==6)

i=0;

reverse(32, i + 10, a[i]) ;

break ;

case 13: done = 1 ;

while(!done) ;

setcursortype(_NOCURSOR) ;

return(i + 49) ;

void main_menu::control_menu()

char choice ;

do

choice = menu() ;

clrscr() ;

switch(choice)

case '1': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

gotoxy(7, 4) ;

entry_menu() ; //sub menu of main menu

break ;
case '2': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

gotoxy(7, 5) ;

display_menu() ; //sub menu of main menu

break ;

case '3': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

gotoxy(7, 6) ;

enquiry_menu() ; //sub menu of main menu

break ;

case '4': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

gotoxy(7, 8) ;

modification_menu() ; //sub menu of main menu

break ;

case '5': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

gotoxy(7, 9) ;

performance_menu() ; //sub menu of main menu

break ;

case '6': exit(0) ;

} while(choice != 5) ;

char main_menu::e_menu()

clrscr() ;

textcolor(22) ;

box(25, 6, 65, 20) ;

box(23, 4, 67, 22) ;

textcolor(5 + 143) ;
gotoxy(34, 5) ;

textbackground(GREEN) ;

cprintf("Entry Menu") ;

textcolor(22) ;

textbackground(BLACK) ;

for(int i = 1; i< 6; i++)

normal(32, i + 10, b[i]) ;

reverse(32, 10, b[0]) ;

i = done = 0 ;

_setcursortype(_NOCURSOR) ; //change the cursor

do

int key = getch() ;

switch(key)

case 72: normal(32, i + 10, b[i]) ;

i-- ;

if(i == -1)

i=5;

reverse(32, i + 10, b[i]) ;

break ;

case 80: normal(32, i +10, b[i]) ;

i++ ;

if(i == 6)

i=0;

reverse(32, i + 10, b[i]) ;

break ;

case 13: done = 1 ;

} while(!done) ;

_setcursortype(_NOCURSOR) ;
return(i + 49) ;}

void main_menu::entry_menu()

char choice ;

student stu ;

college coll ;

examinfoeinfo ;

do

choice = e_menu() ;

clrscr() ;

switch(choice)

case '1': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

setcursortype(_NORMALCURSOR) ;

gotoxy(7, 4) ;

coll.new_college() ; //sub menu of entry menu

break ;

case '2': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

gotoxy(7, 5) ;

stu.new_student() ; //sub menu of entry menu

break ;

case '3': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

gotoxy(7, 6) ;

einfo.exam_formentry() ; //sub menu of entry menu

break ;
case '4': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

gotoxy(7, 7) ;

einfo.exam_scheduleentry() ; //sub menu of entry menu

break ;

case '5': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

gotoxy(7, 8) ;

einfo.result_entry() ; //sub menu of entry menu

break ;

case '6': return ;

}while(choice != 5) ;

char main_menu::d_menu()

clrscr() ;

textcolor(22) ;

box(25, 6, 65, 20) ;

box(23, 4, 67, 22) ;

textcolor(5 + 143) ;

gotoxy(34, 5) ;

textbackground(GREEN) ;

cprintf("Display Menu") ;

textcolor(22) ;

textbackground(BLACK) ;

for(int i = 1; i< 6; i++)

normal(32, i + 10, c[i]) ;

reverse(32, 10, c[0]) ;


i = done = 0 ;

_setcursortype(_NOCURSOR) ; //change the cursor type

Do

int key = getch() ;

switch(key)

case 72: normal(32, i+10, c[i]) ;

i-- ;

if(i==-1)

i=5 ;

reverse(32, i+10, c[i]) ;

break ;

case 80: normal(32, i+10, c[i]) ;

i++ ;

if(i==6)

i=0 ;

reverse(32, i+10, c[i]) ;

break ;

case 13: done = 1 ;

}while(!done) ;

_setcursortype(_NOCURSOR) ;

return(i + 49) ;

void main_menu::display_menu()

char choice ;

college coll ;

student stu ;

examinfoeinfo ;
do

choice = d_menu() ;

clrscr() ;

switch(choice)

case '1': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

coll.display_list() ; //sub menu of display menu

getch() ;

break ;

case '2': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

stu.display_list() ; //sub menu of display menu

getch() ;

break ;

case '3': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

einfo.display_list() ; //submenu of display menu

getch() ;

break ;

case '4': box(3, 1, 75, 24) ;

box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

einfo.display_schedulelist() ; //sub menu of dispalay menu

getch() ;

break ;

case '5': box(3, 1, 75, 24) ;


box(5, 2, 73, 23) ;

_setcursortype(_NORMALCURSOR) ;

einfo.resultdisplay_list() ; //sub menu of display menu

getch() ;

break ;

case '6':

return ;

}while(choice != 5) ;

char main_menu::enqu_menu()

clrscr() ;

textcolor(22) ;

box(25, 6, 65, 20) ;

box(23, 4, 67, 22) ;

textcolor(5 + 143) ;

gotoxy(34, 5) ;

textbackground(GREEN) ;

cprintf("Enquiry Menu") ;

textcolor(22) ;

textbackground(BLACK) ;

for(int i = 1; i< 3; i++)

normal(32, i + 10, d[i]) ;

reverse(32, 10, d[0]) ;

i = done = 0 ;

_setcursortype(_NOCURSOR) ; //change the cursor type

do

int key = getch() ;

switch(key)
{

case 72: normal(32, i+10, d[i]) ;

i-- ;

if(i==-1)

i=2 ;

reverse(32, i+10, d[i]) ;

break ;

case 80: normal(32, i+10, d[i]) ;

i++ ;

if(i==3)

i=0 ;

reverse(32, i+10, d[i]) ;

break ;

case 13: done = 1 ;

}while(!done) ;

_setcursortype(_NOCURSOR) ;

return(i + 49) ;

}
7.Output Screen:
8.Bibliography:
www.codewithc.com
www.kashipara.com
1000projects.org
library.stanford.edu

You might also like