Professional Documents
Culture Documents
Student Management Course Design
Student Management Course Design
ID:188801232
Class: Software Engineering
Subject : Student Management Course
Design in C language
STUDENT MANAGEMENT
SYSTEM
Course Design
1
Table of Contents
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.
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.
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.
Exit
7.Flow Chart:
The flow chart of the proposed and implemented functions are given below:
4
8.User Interface:
Functions
9
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;
};
FILE *ptr;
int main()
FILE *dataFile;
printf("--------------------------------------------------\nStudent ID-188801232\
n---------------------------------------------------\n");
printf("--------------------------------------------------\nYangzhou University\
n----------------------------------------------------\n");
int n = 0;
void addStudent()
int input_id;
char input_name[30];
char input_class[20];
char input_gender[20];
int input_birthYear;
scanf("%d",&input_id);
scanf("%s",input_name);
12
printf("Class: ");
scanf("%s",input_class);
printf("Gender: ");
scanf("%s", input_gender);
scanf("%d",&input_birthYear);
input.id = input_id;
strcpy(input.name, input_name);
strcpy(input._class, input_class);
strcpy(input.gender, input_gender);
input.birthYear = input_birthYear;
fclose (dataFile);
void updateStudentRecord()
int id;
int counter=0;
fclose(ptr);
ptr = fopen("c:\\file.txt","a+");
fflush(stdin);
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");
fclose(dataFile);
void displayAllStudent()
if (dataFile == NULL)
exit (1);
14
printf ("Id = %d\t Name = %s\t Class= %s\t Gender= %s\t Birth Year=%d\t\n",
// close file
fclose (dataFile);
void getAnalysisReport()
if (dataFile == NULL)
exit (1);
int totalStudents=0;
int boyCount = 0;
int girlCount = 0;
totalStudents++;
if(read.gender=="Male")
boyCount++;
else if(read.gender=="Female")
15
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:
addStudent();
break;
case 2:
updateStudentRecord();
break;
case 3:
displayAllStudent();
break;
case 4:
16
getAnalysisReport();
break;
case 5:
exit(0);
break;
default:
break;
return 0;