Final College
Final College
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.
3
3. INTRODUCTION OF THE PROJECT
4
The following are the major operation in this project.
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:
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.
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
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.
used to set the file pointer to the intended file position fseek()
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
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");
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);
strcpy(s.date, myDate);
fp = fopen("stud.txt", "ab");
fflush(stdin);
gets(s.na);
fflush(stdin);
gets(s.cl);
scanf("%d", &s.rl);
fclose(fp);
void display()
system("cls");
fp = fopen("stud.txt", "rb");
while(fread(&s,sz,1,fp) == 1)
fclose(fp);
void search()
int ch;
while(1)
21
system("cls");
printf("1.Search By Roll\n");
printf("2.Search By Name\n");
case 1:
searchByRoll();
break;
case 2:
searchByName();
default:
printf("Invalid Choice");
}
getch();
}
}
void searchByRoll()
{
int rl, f=0;
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:
Create the master and slave database structure to reduce the overload of
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
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