0% found this document useful (0 votes)
33 views31 pages

Final College

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views31 pages

Final College

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

CONTENT

S. No. Topic Title Page No.


1 Certificate 2
2 Acknowledgement 3
3 Introduction of the Project 4-5
4 Language 6
5 Requirements 7
6 Brief History of C language 8-13
7 Software Requirements Specification (SRS) 14
8 Data Flow Diagram (DFD) 15-17
9 Code 18-25
10 Screenshot 26-29
11 Future scope of the Project 30
12 Conclusion 31
13 References 32

1
ACKNOWLEDGEMENT
It gives us a great sense of pleasure to present the report of the B.C.A. project
undertaken during B.C.A. final year. We own special debate of gratitude to Dr.
Ashish Srivastava depart of Bachelor of Computer Application Maharaj Balwant
Singh P.G. College Gangapur Rajatalab, for his constant support and guidance
throughout the course of our work. His sincerity thoroughness and preference have
been constant source of inspiration for us. It his only his cognate effort that our
endeavors have been seen light of the day.

We also take the opportunity to acknowledge the contribution Mr. Shyam


Kashyap department of Computer Application Maharaj Balwant Singh P.G.
College Gangapur Rajatalab for his full support and assistance during the
development of the project.

We also do not like miss the opportunity acknowledge the contribution of


faculty members of the department for their kind of assistance and cooperation
during the deployment of our project and at least but not the least we acknowledge
our friends for their contribution in the completion of the project.

3
3. INTRODUCTION OF THE PROJECT

The "School student’s Admission Management System" has been


developed to override the problems prevailing in the practicing manual system.
This software is supported to eliminate and, in some cases, reduce the hardships
faced by this existing system. Moreover, this system is designed for the
particular need of the company to carry out operations in a smooth and effective
manner.
The application is reduced as much as possible to avoid errors while entering
the data. It also provides error message while entering invalid data. No formal
knowledge is needed for the user to use this system. Thus, by this all it proves
it is user-friendly. School student’s Management System ,as described above,
canlead to error free, secure, reliable and fast management system. It can assist
the user to concentrate on their other activities rather to concentrate on the
record keeping. Thus, it will help organization in better utilization of resources.
Every organization, whether big or small, has challenges to overcome and
managing the information’s of Course, School, Faculty, Exam, Students. Every
School Management System has different School needs; therefore, we design
exclusive employee management systems that are adapted to your managerial
requirements. This is designed to assist in strategic planning, and will help you
ensure that your organization is equipped with the right level of information and
details for your future goals. Also, for those busy executive who are always on
the go, our systems come with remote access features, which will allow you to
manage your workforce anytime, at all times. These systems will ultimately
allow you to better manage resources.

4
The following are the major operation in this project.

1. Add New Student Name


Using this feature we can add new student to list user should enter student
name, student roll no.,
2. Show Students Record
Using this feature we can show student records who is listed in our file. This
record is student name, student roll no., class.

3. Search Student Detail


In this operation we individually search the student detail with the help of
there name, as well as roll no. if two or more student name is same then we
use roll no. to find the student detail.
4. Delete Student Record
In this operation we can delete the student data if student not long no. of our
organization. We are able to delete that student record by delete button.

5
4. LANGUAGE
In this project we use C Language for coding the software of student
database management system.

6
5. REQUIREMENTS

1. Software
Operating System: WINDOWS
Programming Language: C Language
IDE (Integrated Development Environment) : CODE BLOCK
For Data Storage : File Handling
2. Hardware
Processor : Intel Core i5
Memory Size : 4GB RAM
Input : Mouse/Keyboard
Display : Monitor

7
6. BRIEF HISTORY OF C LANGUAGE
C is a general-purpose computer programming language. It was created in

the 1970s by Dennis Ritchie, and remains very widely used and influential. By
design, C's features cleanly reflect the capabilities of the targeted CPUs. It has
found lasting use in operating systems, device drivers, protocol stacks, though
decreasingly for application software, and is common in computer architectures
that range from the largest supercomputers to the
smallest microcontrollers and embedded systems.
A successor to the programming language B, C was originally developed at Bell
Labs by Dennis Ritchie between 1972 and 1973 to construct utilities running
on Unix. It was applied to re-implementing the kernel of the Unix operating
system. During the 1980s, C gradually gained popularity. It has become one of
the most widely used programming languages, with C compilers available for
almost all modern computer architectures and operating systems. C has been
standardized by ANSI since 1989 (ANSI C) and by the International Organization
for Standardization (ISO).
C is an imperative procedural language supporting structured programming, lexical
variable scope, and recursion, with a static type system. It was designed to
be compiled to provide low-level access to memory and language constructs that
map efficiently to machine instructions, all with minimal runtime support. Despite
its low-level capabilities, the language was designed to encourage cross-platform
programming. A standards-compliant C program written with portability in mind
can be compiled for a wide variety of computer platforms and operating systems
with few changes to its source code.
Since 2000, C has consistently ranked among the top two languages in the TIOBE
index, a measure of the popularity of programming languages.

8
 Features of C Language
The core features of a programming language describe its ability and
uniqueness and how beneficial it can be in developing a website or software. Listed
below are some of the significant features of C language:

Simple and Efficient


The basic syntax style of implementing C language is very simple and easy
to learn. This makes the language easily comprehensible and enables a programmer
to redesign or create a new application. C is usually used as an introductory
language to introduce programming to school students because of this feature.

Fast
It is a well-known fact that statically typed programming languages are
faster than dynamic ones. C is a statically typed programming language, which
gives it an edge over other dynamic languages. Also, unlike Java and Python,
which are interpreter-based, C is a compiler-based program. This makes the
compilation and execution of codes faster.
Another factor that makes C fast is the availability of only the essential and
required features. Newer programming languages come with numerous features,
which increase functionality but reduce efficiency and speed. Since C offers
limited but essential features, the headache of processing these features reduces,
resulting in increased speed.

Portability
Another feature of the C language is portability. To put it simply, C programs are
machine-independent which means that you can run the fraction of a code created
in C on various machines with none or some machine-specific changes. Hence, it
provides the functionality of using a single code on multiple systems depending on
the requirement.

9
Extensibility
You can easily (and quickly) extend a C program. This means that if a code is
already written, you can add new features to it with a few alterations. Basically, it
allows adding new features, functionalities, and operations to an existing C
program.

Function-Rich Libraries
C comes with an extensive set of libraries with several built-in functions that make
the life of a programmer easy. Even a beginner can easily code using these built-
in functions. You can also create your user-defined functions and add them to C
libraries. The availability of such a vast scope of functions and operations allows
a programmer to build a vast array of programs and applications.

Dynamic Memory Management


One of the most significant features of C language is its support for dynamic
memory management (DMA). It means that you can utilize and manage the size of
the data structure in C during runtime. C also provides several predefined functions
to work with memory allocation. For instance, you can use the free() function to
free up the allocated memory at any time. Similarly, there are other functions such
as malloc(), calloc(), and realloc() to perform operations on data structure and
memory allocations.

Modularity With Structured Language


C is a general-purpose structured language. This feature of C language allows you
to break a code into different parts using functions which can be stored in the form
of libraries for future use and reusability.. Structuring the code using functions
increases the visual appeal and makes the program more organized and less prone
to errors.

10
Mid-Level Programming Language
Although C was initially developed to do only low-level programming, it now also
supports the features and functionalities of high-level programming, making it a
mid-level language. And as a mid-level programming language, it provides the best
of both worlds. For instance, C allows direct manipulation of hardware, which
high-level programming languages do not offer.

Pointers
With the use of pointers in C, you can directly interact with memory. As the
name suggests, pointers point to a specific location in the memory and interact
directly with it. Using the C pointers, you can operate with
memory, arrays, functions, and structures.

Recursion
C language provides the feature of recursion. Recursion means that you can
create a function that can call itself multiple times until a given condition is true,
just like the loops. Recursion in C programming provides the functionality of code
reusability and backtracking.

11
 Version of C Language

VERSION STANDARD PUBLICATION DATE


K&R n/a 1978-02-22
C89 ANSI X3.159-1989 1989-12-14
C90 ISO/IEC 9899:1990 1990-12-20
C95 ISO/IEC 9899/AMD1:1995 1995-03-30
C99 ISO/IEC 9899:1999 1999-12-16
C11 ISO/IEC 9899:2011 2011-12-15

12
 What is file handling?
File handling refers to the method of storing data in the C program in the form
of an output or input that might have been generated while running a C program in
a data file, i.e., a binary file or a text file for future analysis and reference in that
very program.

 Function of file handling

Description of Function Function in Use


used to open an existing file or a new file fopen()

writing data into an available file fprintf()

reading the data available in a file fscanf()

writing any character into the program file fputc()

reading the character from an available file fgetc()

used to close the program file fclose()

used to set the file pointer to the intended file position fseek()

writing an integer into an available file fputw()

used to read an integer from the given file fgetw()

used for reading the current position of a file ftell()

sets an intended file pointer to the file’s beginning itself rewind()

13
7. SRS (SOFTWARE REQUIREMENT SPECIFICATION)
This is the Software Requirement Specification for Student Management
System, Which is developed using C Language.

1: Introduction

Purpose
Our product is student management system gives all the services that must
be provided to a student over the internet to find fee details provided by that
administrator of the school. This product contains each and every data regarding
student, payment etc., personal details which can be updated by the student and
viewed by the administrator. It provides the detailed information about the fee
details and the location (place) of school

Intended Audience and Reading Suggestions


The intended audience for this Student Management System document is the
internal guides of the organization where the team has developed the project.
Further modifications and reviewing will be done by the organization and deliver
a final version. The final version of this document is reviewed by the Internal
Guides and Head of the Department of the college.

Project Scope
Our Student Management System product usage makes work done at the
faster way the software is applicable to view the fee details provided by the
administrator of the organization and student can edit his personal details which
can be viewed by the administrator.

14
DATA FLOW
DIAGRAM

15
0 Level DFD

ONLINE
Online registration ADMISSION
SYSTEM
STUDENT’S
Success registration

Allotment
branch
information

Register

16
1st Level DFD

School Generate
Management Name of
Student

Student
School
Management Generate
admission
management Roll no
system
Class
Management
Check class
Course detail
Management

17
9. CODING
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
struct student
{
char na[30];
char cl[10];
int rl;
char date[12];
} s;

FILE *fp;
long sz = sizeof(s);
int main()

{
int ch;
while(1)

system("cls");
printf("<==school Management ==>\n");

printf("1.Take Admission\n");

printf("2.Student Info\n");

printf("3.Search\n");

printf("4.Modify\n");

printf("5.Delete\n");

18
printf("0.Exit\n\n");

printf("Enter your choice: ");

scanf("%d", &ch);

switch(ch)

{
case 0:
exit(0);

case 1:
input();
break;

case 2:
display();
break;

case 3:
search();
break;

case 4:
modify();
break;

case 5:
del();
break;

19
printf("\n\nPress Any Key To Continue");
getch();
}
return 0;
}
void input()
{

char myDate[12];

time_t t = time(NULL);

struct tm tm = *localtime(&t);

sprintf(myDate, "%02d/%02d/%d", tm.tm_mday, tm.tm_mon + 1,


tm.tm_year + 1900);

strcpy(s.date, myDate);

fp = fopen("stud.txt", "ab");

printf("Enter student name: ");

fflush(stdin);

gets(s.na);

printf("Enter class: ");

fflush(stdin);

gets(s.cl);

printf("Enter roll: ");

scanf("%d", &s.rl);

fwrite(&s, sz, 1, fp);


20
printf("Record Saved Successfully...");

fclose(fp);

void display()

system("cls");

printf("<== Student Info ==>\n\n");

printf("%-30s %-20s %-10s %s\n","Name","Class","Roll","Date");

fp = fopen("stud.txt", "rb");

while(fread(&s,sz,1,fp) == 1)

printf("%-30s %-20s %-10d %s\n", s.na, s.cl, s.rl, s.date);

fclose(fp);

void search()

int ch;

while(1)

21
system("cls");

printf("<== Search ==>\n");

printf("1.Search By Roll\n");

printf("2.Search By Name\n");

printf("0.Back To Main Menu\n");


printf("\n\nEnter your choice: ");
scanf("%d", &ch);
switch(ch)
{
case 0:
main();
break;

case 1:
searchByRoll();
break;
case 2:
searchByName();
default:
printf("Invalid Choice");
}
getch();
}
}
void searchByRoll()
{
int rl, f=0;

printf("Enter roll to search: ");


scanf("%d", &rl);
printf("%-30s %-20s %-10s %s\n","Name","Class","Roll","Date");
fp = fopen("stud.txt","rb");
while(fread(&s,sz,1,fp)==1)
{
if(rl == s.rl)
{
22
f=1;
printf("%-30s% -20s%- 10d %s\n",s.na,s.cl,s.rl,s.date);
break;
}
}
fclose(fp);
if(f==0){
printf("Record not found");
}else{
printf("Record found succesfully");
}
}
void searchByName()
{
char na[30];
int f=0;
printf("Enter Name to search: ");
fflush(stdin);
gets(na);

printf("%-30s %-20s %-10s %s\n","Name","Class","Roll","Date");


fp = fopen("stud.txt","rb");
while(fread(&s,sz,1,fp)==1)
{
if(strcmpi(na, s.na)==0)
{
f=1;
printf("%-30s% -20s%- 10d %s\n",s.na,s.cl,s.rl,s.date);
break;
}
}
fclose(fp);
if(f==0){
printf("Record not found");
}else{
printf("Record found succesfully");
}
}
void modify(){
int rl, f=0;
23
printf("Enter roll to modify: ");
scanf("%d", &rl);
fp = fopen("stud.txt","rb+");
while(fread(&s,sz,1,fp)==1)
{
if(rl == s.rl)

f=1;
printf("Enter new name: ");
fflush(stdin);
gets(s.na);
printf("Enter new class: ");
fflush(stdin);
gets(s.cl);
printf("Enter new roll: ");
scanf("%d", &s.rl);
fseek(fp, -sz,1);
fwrite(&s, sz, 1, fp);
fclose(fp);
break;
}
}
fclose(fp);
if(f==0){
printf("Record not found");
}

else

{
printf("Record Modified succesfully");
}
}
void del(){
int rl, f=0;
printf("Enter roll to delete: ");
24
scanf("%d", &rl);
FILE *ft;

fp = fopen("stud.txt","rb");
ft = fopen("temp.txt","ab");
while(fread(&s,sz,1,fp)==1)
{
if( rl == s.rl)
{
f=1;
}

else

{
fwrite(&s, sz, 1, ft);
}

fclose(fp);
fclose(ft);
remove("stud.txt");
rename("temp.txt", "stud.txt");
if(f==0){
printf("Record not found");

else

{
printf("Record Delete succesfully");
}

25
10. Screenshot
1. Student Registration or Take Admission

26
2. Student information

27
3. Search by roll or Name

28
4. Delete

29
11. FUTURE SCOPE
In a nutshell, it can be summarized that the future scope of the project
circles around maintaining information regarding:

 We can add printer in future.

 Wecangive moreadvancesoftware for school Management System

including more facilities

 We will host the platform on online servers to make it accessible worldwide

 Integrate multiple load balancers to distribute the loads of the system

 Create the master and slave database structure to reduce the overload of

the database queries

 Implement the backup mechanism for taking backup of codebase and

database on regular basis on different servers

The above mention points are the enhancements which can be done to increase the
applicability and usage of this project. Here we can maintain the records of school
and Course. Also, as it can be seen that now-a-days the players are versatile, i.e.,
so there is a scope for introducing a method to maintain the school Management
System. Enhancements can be done to maintain all the school,
,Students.

We have left all the options open so that if there is any other future requirement
in the system by the user for the enhancement of the system then it is possible to
implement them. In the last we would like to thanks all the persons involved in the
development of the system directly or indirectly.We hope that the project will serve
its purpose for which it is develop there by underlining successof process.

30
12. CONCLUSION
Our project is only a humble venture to satisfy the needs to manage their
project work. Several user-friendly coding has also adopted. This package shall
prove to be a powerful package in satisfying all the requirements of the school.
The objective of software planning is to provide a frame work that enables the
manger to make reasonable estimates made within a limited time frame at the
beginning of the software project and should be updated regularly as the project
progresses.
At the end it is concluded that we have made effort on following points.
 A description of the background and context of the project and its relation

to work already done in the area.


 Made statement of the aims and objectives of the project.

 The description of Purpose, Scope, and applicability.

 We define the problem on which we are working in the project.

 We describe the requirement Specifications of the system and the actions

that can be done on these things.


 We understand the problem domain and produce a model of the system,

which describes operations that can be performed on the system.


 We included features and operations in detail, including screen layouts.
 We designed user interface and security issues related to system.

 Finally, the system is implemented and tested according to test cases.

31
13. REFERENCES
We are taking this Code from the Website as well as reference book.
 Website
www.codegallery.com
www.jntuacecse.com
www.youtube.com
 http://www.gnu.org
Website of the free software foundation which support open
source community.
 http://www.100ittutorials.com
Large collection of good tutorials for reference
 http://www.codeguru.com
Good articles on programming
 Books
 Professional C Language
By: L. Balaguruswami

32

You might also like