You are on page 1of 17

Name: Emon Abdul Awal( 艾沂蒙 )

ID:188801232
Class: Software Engineering
Subject : Student Management Course
Design in C language

STUDENT MANAGEMENT
SYSTEM
Course Design
1

Table of Contents

1. Introduction and Objective of the Project………………2


2. Why System was built?......................................................2
3. Solution?............................................................................2
4. Purpose of Curriculum Design…………………………………………..2
5. Proposed System………………………………………………………………3
6. Modules of the Project……………………………………………………..3
7. Flow Chart………………………………………………………………………4-8
8. User Interface………………………………………………………………..8-10
9. Source Code…………………………………………………………………..10-16
10. Conclusion……………………………………………………………...16
2

1.Introduction and Objective of the Project:


Student Management Systems are designed to manage and store student information. The project is
titled "Student Management System". This package once developed will help the school/institute to
manage various details pertaining to its students. It will help management or we can say
administration department in maintaining student’s basic details. This package is basically developed
for the authorities of the school/institute to make their task easier or we can say this package
automate their tasks like maintaining student’s personal details.

In brief we can say this system was required to automate the processing of student’s details, which
was done manually before the development of the package. Earlier all the information / data
pertaining to the students was maintained manually or we can say it was on paper, hence it created
a problem for the organization/ school, how to manage it properly. With the help of this system the
organization/school is able to maintain the data properly & accurately.

2.Why System was built?


 Earlier, data pertaining to students was maintained manually.
 Manual system was not efficient.
 Cost of maintaining data manually was bigger or huge.
 Large manpower was required.
 The procedure was error prone, it was not accurate.
 Manual system was not suited for electronic exchange of data.

3.Solution?
The solution for all this problem was to automate the system, automation of the students data
maintenance would reduce the manpower, man days will result in accurate data & above all increase
the efficiency of the concerned department.

4.Purpose of Curriculum Design

1. Consolidate and deepen our understanding and mastery of the basic knowledge of the C
language.
2. Master the ability to write program design description documents.
3. Master the basic skills of language programming and program debugging
4. Use C language for basic Software Design.
5. Improve the ability of using C language to solve practical problems.
3

5.Proposed System
The aim of proposed system is to develop a system of improved facilities. The proposed system can
overcome all the limitations of the existing system. The system provides proper security and reduces
the manual work.

 Student records are stored in files


 Must record Student ID, Student Name, Class, Gender, Birth Year.
 Student information browsing function
 Student information query function
 Student information modification function
 Count the total number of students, the number of boys and girls, the number of each class
and the number of each age
 Exit the system

6.Modules of the Project:


 Add Student

 View/Display all students

 Update Student Details

 Search Individual Students records

 Get Analysis Report(Count of students)

 Exit

7.Flow Chart:
The flow chart of the proposed and implemented functions are given below:
4

Flow Chart of Add Student Function


5

Flow Chart of Display Student Function


6
7

Flow Chart of Update Student Record

Flow Chart of Get Analysis Function


8

Flow Chart of Individual Function

8.User Interface:

Functions
9

Add New Student

View All Student


10

Get Analysis Report (Count)

Individual View (Query)

9.Source Code:
#include <stdio.h>

#include <stdlib.h>

#include <string.h>

void addStudent();

struct student

int id;

char name[30];

char _class[20];

char gender[20];
11

int birthYear;

};

struct student var;

FILE *ptr;

int main()

FILE *dataFile;

printf("--------------------------------------\n Welcome to Student Management System\


n--------------------------------------\n");

printf("--------------------------------------------------\nAbdul Awal Emon\n----------------------------------------------------\


n");

printf("--------------------------------------------------\nStudent ID-188801232\
n---------------------------------------------------\n");

printf("--------------------------------------------------\nYangzhou University\
n----------------------------------------------------\n");

int n = 0;

void addStudent()

dataFile = fopen ("studentdata.txt", "a+");

int input_id;

char input_name[30];

char input_class[20];

char input_gender[20];

int input_birthYear;

printf("\nStudent Id: ");

scanf("%d",&input_id);

printf("Student Name: ");

scanf("%s",input_name);
12

printf("Class: ");

scanf("%s",input_class);

printf("Gender: ");

scanf("%s", input_gender);

printf("Birth Year: ");

scanf("%d",&input_birthYear);

struct student input;

input.id = input_id;

strcpy(input.name, input_name);

strcpy(input._class, input_class);

strcpy(input.gender, input_gender);

input.birthYear = input_birthYear;

fwrite (&input, sizeof(struct student), 1, dataFile);

fclose (dataFile);

void updateStudentRecord()

int id;

int counter=0;

FILE *ptr2 = fopen("studentdata2.txt","a");

int records = 15;


13

fclose(ptr);

ptr = fopen("c:\\file.txt","a+");

fflush(stdin);

printf("Enter Enrollment Number:\n");

scanf("%d",&id);

while(counter!=records)

fread(&var,sizeof(struct student),1,ptr);

if(var.id==id)

else

fwrite(&var,sizeof(struct student),1,ptr2);

counter++;

//fcloseall();

remove("studentdata.txt");

rename("studentdata2.txt","studentdata.txt");

printf("Press any key..");

fclose(dataFile);

void displayAllStudent()

dataFile = fopen ("studentdata.txt", "r");

if (dataFile == NULL)

printf("\nError opening file\n");

exit (1);
14

struct student read;

// read file contents till end of file

while(fread(&read, sizeof(struct student), 1, dataFile))

printf ("Id = %d\t Name = %s\t Class= %s\t Gender= %s\t Birth Year=%d\t\n",

read.id, read.name, read._class, read.gender, read.birthYear);

// close file

fclose (dataFile);

void getAnalysisReport()

dataFile = fopen ("studentdata.txt", "r");

if (dataFile == NULL)

printf("\nError opening file\n");

exit (1);

int totalStudents=0;

int boyCount = 0;

int girlCount = 0;

struct student read;

// read file contents till end of file

while(fread(&read, sizeof(struct student), 1, dataFile))

totalStudents++;

if(read.gender=="Male")

boyCount++;

else if(read.gender=="Female")
15

girlCount++;

printf("\n\nTotal Students: %d\t",totalStudents);

printf("Total Boys: %d\t",boyCount);

printf("Total Girls: %d\t",girlCount);

// close file

fclose (dataFile);

while(n != 10)

printf("\n\n1 Add New Student\n 2 Update Student Information\n 3 View All Students\n 4 Get Analysis
Report\n 5 System Exit\n Please Select a Option: ");

scanf("%d",&n);

switch( n )

case 1:

printf("\n\nAdd New Student\n");

addStudent();

break;

case 2:

printf("\n\nUpdate Student Information\n");

updateStudentRecord();

break;

case 3:

printf("\n\nView All Students\n");

displayAllStudent();

break;

case 4:
16

getAnalysisReport();

break;

case 5:

printf("\n\nThanks for Using\n");

exit(0);

break;

default:

printf("\n\nPlease Select a Valid Option!\n");

break;

return 0;

10.Conclusion of the Project:


Our project is only a humble venture to satisfy the needs in a school to manage their project work.
Several user-friendly coding have also being 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.

You might also like