You are on page 1of 12

(student system C++)

Student Name: Hussin Sabah Abdulla

Class: Second Class (B)


Course Title: student system C++

Department: Electric engineering

College of Engineering
Salahaddin University-Erbil
Academic Year 2019-2020

1
ABSTRACT

We overhauled the existing student Database Management system and


made necessary improvement to streamline the processes. Our work is
Useful for easy user interface. We are planning to utilize the powerful
database management. Data retrieval and data manipulation . we will
provide more ease for managing the data than manually maintaining

In the documents . Our work is useful for saving valuable time and reduces
the paper work . student management system as the name indicates will
used for managing students records will be used for various purposes .

Accepting correct data will results in generating the desire output in correct
format without any delay . so this system has been enable with validation
data checkup while entering the data and before saving it to the particular
file . students will also able to check their data and modify their basic
information as per their requirements .

TABLE OF CONTENT:

 ABSTRACT 2
 TABLE OF CONTENT 2
 INTRUDACTION 3
 METHODS 4
 REFRENCES 12

2
INTRUDACTION

An organized and systematic once solution is essential for all


universities and organization. There are many department of
administration for the maintenance of college information and student
databases in any institution. All these departments provide various
records regarding students. Most of these track records need to
maintain information about the students. This information could be
the general details like student name, address, performance etc
specific information related to departments like collection of data. All
the modules in college administration are interdependent. They are
maintained manually. So they need to be automated and centralized
as, when a student needs his course completion certificate it needs to
check many details about the student like his name, age, number,
year of study, exams he attended and many other details. So it need
to contact all the modules that are once, department and examination
and result of students.

This mini project Student Record System has its own style of coding
and presented in a specific manner. You can use this project for
adding. deleting, modifying and also using many other file handling
options. This project has used C++ programming language. The
previous project Student Record System is designed using C
Programming Language. C and C++ Programs looks same but not
exactly the same. They are different from one another. You will get
the source code for this project.

3
METHOD 1

Student Management System in C++ with Source Code:


The student management system is made on the concept of student
admission and its management. Through this project, you can
manage all the record of the student, who enrolled in school, college
,or university.
This project is developed in c++ by using the concept of OOP using
structure. As we are using an external file system, so there's no
chance of losing data after closing the program. To start this
program, you have to enter the user name and password as it is
protected by both things so there's no chance that any unauthorized
user can edit, delete, or add the information.

Features Included Student Management System

1. Login
2. Enter New Record
3. Modify Record
4. Delete Record
5. Search Record
6. Exit

Details of Features
Login
When you start the program, you have to enter username and password to enter
into the program so you can insert the record of any student. This program is
protected by username and password.
Enter New Record
After the successful login into the program, now you can insert the new record of
each student. You can enter the details of the students with perspectives of id,
full name, class, branch, address, email, roll number, and contact details.

4
Modify Record
Well! you can edit all information about any particular student easily. This module
will allow you to edit information by just entering the full name of the student.
Delete Record
After searching the student by entering his full name, you can delete his all data
in just one click of delete. There's an option where you can access and erase the
whole record.
Search Record
Searching is the most important part of this project as this option will be used
much more than others. Through this function, we can search record of any
student who is enrolled in our school, college, or university. You can see all the
information about the person.
Exit

5
METHOD2

Student Information Management System :

1. Add Student Details: Get data from user and add a student to the list of
students. While adding the students into the list, check for the uniqueness of
the roll number.
2. Find the student by the given roll number: This function is to find the
student record for the given roll number and print the details.
3. Find the student by the given first name: This function is to find all the
students with the given first name and print their details.
4. Find the students registered in a course: This function is to find all the
students who have registered for a given course.
5. Count of Students: This function is to print the total number of students in
the system
6. Delete a student: This function is to delete the student record for the given
roll number.
7. Update Student: This function is to update the student records. This
function does not ask for new details for all fields but the user should be
able to pick and choose what he wants to update.

// Function to add the student into the database


void add_student()
{

printf("Add the Students Details\n");


printf("-------------------------\n");
printf("Enter the first name of student\n");
// First name of the student
st[i].fname = "Rahul";
printf("Enter the last name of student\n");
// Last name of the student
st[i].lname = "Kumar";
printf("Enter the Roll Number\n");
// Roll Number of the student
st[i].roll = 1;
printf("Enter the CGPA you obtained\n");
// CGPA of the student
st[i].cgpa = 8;
printf("Enter the course ID"
" of each course\n");

// Storing the courses every student

6
// is enrolled in
for (int j = 0; j < 5; j++) {
st[i].cid[j] = j;
}
i = i + 1;
}

// C program for the implementation of


// menu driven program for student
// management system
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Variable to keep track of
// number of students
int i = 0;
// Structure to store the student
struct sinfo {
char fname[50];
char lname[50];
int roll;
float cgpa;
int cid[10];
} st[55];

// Function to add the student


void add_student()
{
printf("Add the Students Details\n");
printf("-------------------------\n");
printf("Enter the first "
"name of student\n");
scanf("%s", st[i].fname);
printf("Enter the last name"
" of student\n");
scanf("%s", st[i].lname);
printf("Enter the Roll Number\n");
scanf("%d", &st[i].roll);
printf("Enter the CGPA "
"you obtained\n");
scanf("%f", &st[i].cgpa);
printf("Enter the course ID"
" of each course\n");
for (int j = 0; j < 5; j++) {
scanf("%d", &st[i].cid[j]);
}
i = i + 1;
}

// Function to find the student


// by the roll number
void find_rl()
{
int x;

7
printf("Enter the Roll Number"
" of the student\n");
scanf("%d", &x);
for (int j = 1; j <= i; j++) {
if (x == st[i].roll) {
printf(
"The Students Details are\n");
printf(
"The First name is %s\n",
st[i].fname);
printf(
"The Last name is %s\n",
st[i].lname);
printf(
"The CGPA is %f\n",
st[i].cgpa);
printf(
"Enter the course ID"
" of each course\n");
}
for (int j = 0; j < 5; j++) {
printf(
"The course ID are %d\n",
st[i].cid[j]);
}
break;
}
}

// Function to find the student


// by the first name
void find_fn()
{
char a[50];
printf("Enter the First Name"
" of the student\n");
scanf("%s", a);
int c = 0;

for (int j = 1; j <= i; j++) {


if (!strcmp(st[j].fname, a)) {

printf(
"The Students Details are\n");
printf(
"The First name is %s\n",
st[i].fname);
printf(
"The Last name is %s\n",
st[i].lname);
printf(
"The Roll Number is %d\n ",
st[i].roll);
printf(
"The CGPA is %f\n",
st[i].cgpa);

8
printf(
"Enter the course ID of each course\n");

for (int j = 0; j < 5; j++) {


printf(
"The course ID are %d\n",
st[i].cid[j]);
}
c = 1;
}
else
printf(
"The First Name not Found\n");
}
}

// Function to find
// the students enrolled
// in a particular course
void find_c()
{
int id;
printf("Enter the course ID \n");
scanf("%d", &id);
int c = 0;

for (int j = 1; j <= i; j++) {


for (int d = 0; d < 5; d++) {
if (id == st[j].cid[d]) {

printf(
"The Students Details are\n");
printf(
"The First name is %s\n",
st[i].fname);
printf(
"The Last name is %s\n",
st[i].lname);
printf(
"The Roll Number is %d\n ",
st[i].roll);
printf(
"The CGPA is %f\n",
st[i].cgpa);

c = 1;

break;
}
else
printf(
"The First Name not Found\n");
}
}
}

9
// Function to print the total
// number of students
void tot_s()
{
printf("The total number of"
" Student is %d\n",
i);
printf("\n you can have a "
"max of 50 students\n");
printf("you can have %d "
"more students\n",
50 - i);
}

// Function to delete a student


// by the roll number
void del_s()
{
int a;
printf("Enter the Roll Number"
" which you want "
"to delete\n");
scanf("%d", &a);
for (int j = 1; j <= i; j++) {
if (a == st[j].roll) {
for (int k = j; k < 49; k++)
st[k] = st[k + 1];
i--;
}
}
printf("The Roll Number"
" is removed Successfully\n");
}

// Function to update a students data


void up_s()
{

printf("Enter the roll number"


" to update the entry : ");
long int x;
scanf("%ld", &x);
for (int j = 0; j < i; j++) {
if (st[j].roll == x) {
printf("1. first name\n"
"2. last name\n"
"3. roll no.\n"
"4. CGPA\n"
"5. courses\n");
int z;
scanf("%d", &z);
switch (z) {
case 1:
printf("Enter the new "
"first name : \n");

10
scanf("%s", st[j].fname);
break;
case 2:
printf("Enter the new "
"last name : \n");
scanf("%s", st[j].lname);
break;
case 3:
printf("Enter the new "
"roll numnber : \n");
scanf("%d", &st[j].roll);
break;
case 4:
printf("Enter the new CGPA : \n");
scanf("%f", &st[j].cgpa);
break;
case 5:
printf("Enter the new courses \n");
scanf(
"%d%d%d%d%d", &st[j].cid[0],
&st[j].cid[1], &st[j].cid[2],
&st[j].cid[3], &st[j].cid[4]);
break;
}
printf("UPDATED SUCCESSFULLY.\n");
}
}
}

// Driver code
void main()

{
int choice, count;
while (i = 1) {
printf("The Task that you "
"want to perform\n");
printf("1. Add the Student Details\n");
printf("2. Find the Student "
"Details by Roll Number\n");
printf("3. Find the Student "
"Details by First Name\n");
printf("4. Find the Student "
"Details by Course Id\n");
printf("5. Find the Total number"
" of Students\n");
printf("6. Delete the Students Details"
" by Roll Number\n");
printf("7. Update the Students Details"
" by Roll Number\n");
printf("8. To Exit\n");
printf("Enter your choice to "
"find the task\n");
scanf("%d", &choice);
switch (choice) {
case 1:

11
add_student();
break;
case 2:
find_rl();
break;
case 3:
find_fn();
break;
case 4:
find_c();
break;
case 5:
tot_s();
break;
case 6:
del_s();
break;
case 7:
up_s();
break;
case 8:
exit(0);
break;
}
}
}

REFERENCES:
1. https://infocode.org/mini-project-in-student-information-system-using-c-with-
source-code/
2. https://www.eprogramlab.com/2019/02/student-management-system-in-c-
with-source-code.html

3. https://www.geeksforgeeks.org/student-information-management-
system/

4. https://books.google.iq/books?id=fyLDGwAACAAJ&dq=student+system+
c%2B%2B&hl=ar&sa=X&ved=0ahUKEwjH287RtfXpAhVRPJoKHdwDBPAQ6wEIiQE
wCQ

12

You might also like