0% found this document useful (0 votes)
12 views14 pages

Pps 2

C language using if and if else

Uploaded by

wagdarerohan08
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)
12 views14 pages

Pps 2

C language using if and if else

Uploaded by

wagdarerohan08
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/ 14

CMR TECHNICAL CAMPUS

UGC AUTONOMOUS
Accredited by NBA & NAAC with ‘A’ Grade

Approved by AICTE, New Delhi and JNTUH.


Hyderabad

LABORATORY REPORT/PROJECT & PRESENTATION


Proble
AcademicYear Design & : Total Final
m Implementatio
Name Statement & Methodolog: y
Marks Marks
ofOt
n & result
e15tiuvde nt
Roll N o 15 : 10 40 10
Year :

Semester :
S ctio ks/Comments by Faculty: :
ema
n
Branch :
r
Nameeof ft heeLFabc ory : :
o
BS hatnuore of the Faculty : :
:
Title of the Lab Report/Project
Date :

Signature of the Student :

A Mini Project Report


For

PPS Lab (22CS107 ES)


On
STUDENT MANAGEMENT SYSTEM
Submitted
To
CMR Technical Campus, Hyderabad

In Partial fullment for the requirement of the Award of the


Degree of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE & ENGINEERING (Data
Science)

By

V.MAMATHA : 247R1A67C1

V.SAI KIRAN : 247R1A67C3

W ROHAN: 247R1A67C4

Y.HASNIKA : 247R1A67C5
UNDER THE ESTEEMED GUIDANCE OF

P. SRIVANI
Assistant Professor Department of H&S

CMR TECHNICAL CAMPUS


An UGC Autonomous Institute
Accredited by NBA & NAAC with A Grade
(Approved by AICTE, Af filiated to JNTU, Hyderabad)
Kandlakoya (V), Medchal (M),Hyderabad-501 401

(2024-2025)
CMR TECHNICAL CAMPUS
KANDLAKOYA, MEDCHALROAD,
HYDERABAD–501401
DEPARTMENT OF HUMANITIES AND
SCIENCES

CERTIFICATE

This is to certify that the project report entitled “ STUDENT


MANAGEMENT SYSTEM” begin submitted by (V. MAMATHA and
247 R 1A67 C 1), (V. SAI KIRAN and 247R1A67C3), (W.ROHAN and
247R1A67C4), (Y.HASNIKA and 247R1A67C5) in partial fulllment
for the award of Bachelor Of Technology In Computer Science
and Engineering (Data science) is a record of Bonade work carried
out his under my guidance and supervision.

P. SRIVANI DR.V. KESHAVAREDDY


(Assistant HOD
Professor)
ACKNOWLEDGEMENT

With great pleasure we want to take this opportunity to express my heartfelt


gratitude to all the people who helped in making this project work a grand
success.
We are grateful to p srivani, Assistant Professor, DEPARTMENT OF
HUMANITIES AND SCIENCES, and CMR Technical Campus for their
valuable technical suggestions and guidance during the execution of this
project work.
We would like to thank Dr.V.Keshava Reddy, Head of the
DEPARTMENT OF HUMANITIES AND SCIENCES, CMR Technical Campus,
who is the major driving forces to complete my project work successfully.
We would like to thank our internal project mates and Department Professors
for their full- edged guidance and giving me courage to carryout the project.

V MAMATHA : 247R1A67C1
V. SAI KIRAN : 247R1A67C3

W.ROHAN : 247R1A67C4
Y.HASNIKA : 247R1A67C5
INDEX

1. Introduction

2. Project overview

3. Working principle

4. Code

5. Advantages and
Disadvantages

6. Conclusion

7. Future scope

8. Reference
1.Introduction to student management system
A Student Management System (SMS) is an application used to manage student
data,
including personal information, academic performance, attendance, and other
related
activities. This system is commonly used in schools, colleges, universities, and e
-learning platforms to streamline administrative tasks.

2.Project overview and Working Principle


Algorithm for Student Management System
Steps:

1. Start

Initialize student data storage (e.g., an array or list) and a counter for tracking
2. Display Menu
the number of students.
Show the menu with options:

Add Student
View All Students
Update Student
Delete Student
Search Student
Exit

3. Input User Choice


Get the user’s choice (1-6).

4. Handle Each Option


Option 1: Add Student

Take input for student details (ID, Name, Age,


Grade).
Store the student data.

Increment the student count.


Option 2: View All Students
Display all students' details.
Option 3: Update Student

Find the student by ID.

Update their details (Name, Age, Grade).


Option 4: Delete Student

Delete the student by ID and shift others to maintain the list.


Option 5: Search Student

Search and display the student by ID.

Option 6: Exit

End the program.

5. End

3. C Code For Student Management System


#include <stdio.h>

#include <string.h>

#def ine MAX_STUDENTS 100

// Structure to store student details


struct Student {

int rollNumber;
char name[50];

int age;
};

// Function declarations
void addStudent(struct Student students[], int *count);

void removeStudent(struct Student students[],int *count, int


rollNumber);
void displayAllStudents(struct Student students[], int count);
void searchStudent(struct Student students[], int count, int
rollNumber);
void menu();

// Main function
int main() {
menu();
return 0;

// Function to display the menu


void menu() {

struct Student students[MAX_STUDENTS];

int count = 0; // To keep track of number of students


int choice, rollNumber;
while (1) {

printf("\nStudent Management System\n");


printf("1.Add Student\n");

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

printf("3. Display All Students\n");


printf("4. Search Student\n");

printf("5. Exit\n");

printf("Enter your choice: ");


scanf("%d", &choice);

switch (choice) {
case 1:

addStudent(students, &count);
break;
case
2:
printf("Enter Roll Number of student to remove: ");
scanf("%d", &rollNumber);

removeStudent(students, &count, rollNumber);


break;

case 3:
displayAllStudents(students, count);

break;
case 4:

printf("Enter Roll Number of student to search: ");


scanf("%d", &rollNumber);

searchStudent(students, count, rollNumber);

break;
case 5:

printf("Exiting the system.\n");


return;

default:
printf("Invalid choice. Please try again.\n");
}

}
}

// Function to add a student


void addStudent(struct Student students[], int *count)
{
if (*count >= MAX_STUDENTS) {

printf("Cannot add more students, system is full.\n");


return;

printf("Enter Roll Number: ");

scanf("%d", &students[*count].rollNumber)
;
printf("Enter Name: ");

getchar(); // To consume the newline character left by previous input

fgets(students[*count].name, 50, stdin);

students[*count].name[strcspn(students[*count].name, "\n")] = '\0'; //


Remove newline at the end of name
printf("Enter Age: ");

scanf("%d", &students[*count].age);

(*count)++;

printf("Student added successfully.\n");


}

// Function to remove a student


void removeStudent(struct Student students[],int *count, int rollNumber) {
int i, found = 0;

for (i = 0; i < *count; i++) {

if (students[i].rollNumber == rollNumber) {
found = 1;

// Shift students to remove the current student


for (intj = i; j < *count - 1; j++) {

students[j] = students[j + 1];


}

(*count)--; // Decrease student count

printf("Student with roll number %d has been removed.\n", rollNumber);


break;

}
}

if (!found) {

printf("Student with roll number %d not found.\n", rollNumber);


}
}

// Function to display all students

void displayAllStudents(struct Student students[], int count) {


if (count == 0) {

printf("No students to display.\n");


return;

printf("\nAll Students:\n");
for (int i = 0; i < count; i++) {

printf("Roll Number: %d, Name: %s, Age: %d\n",

students[i].rollNumber, students[i].name, students[i].age);

}
}

// Function to search for a student by roll number

void searchStudent(struct Student students[], int count, int


rollNumber) {
int found = 0;

for (int i = 0; i < count; i++) {

if (students[i].rollNumber == rollNumber) {

printf("Student found: Roll Number: %d, Name: %s, Age: %d\n",


students[i].rollNumber, students[i].name, students[i].age);

found = 1;
break;

}
}
if (!found) {

printf("Student with roll number %d not found.\n", rollNumber);


}

4.Advantages of student Management system

Efficiency: Automates administrative tasks, reducing manual work and errors.

Data Integrity: Ensures accurate data storage and minimizes human error.

Time-saving: Students, parents, and administrators can quickly access and


update student data.

Cost-ef fective: Reduces the need for paper records, leading to cost savings in
the long term.

Real-time updates: Allows for real-time access to information about students'


grades, attendance, and other metrics.

Improved communication: Facilitates communication between students,


teachers, and parents.

5.disadvantages of student management system


Initial Setup Cost: Implementing a Student Management System may
require initial
investment in terms of software and infrastructure.

Technical Challenges: Requires technical knowledge for setup,


maintenance, and
troubleshooting.
Dependence on Technology: The system’s functionality is dependent on the
underlying hardware and software infrastructure, leading to potential risks
if the system goes down.

Training Requirement: Administrators and users must be trained on how to


ef fectively use the
system.

6.Conclusion
The Student Management System (SMS) simplif ies and automates various
administrative
tasks within educational institutions, such as managing student data, grades,
attendance, and communications. While it of fers numerous benef its, including
ef ficiency, time-saving, and
enhanced communication, it also comes with challenges like initial setup costs,
data security concerns, and the need for proper training. Overall, an SMS
signif icantly improves the
operational aspects of educational institutions, leading to more ef fective
7.Application
management and a better educational experience for both students and staf f.
Educational Institutions: Schools, colleges, and universities use SMS to
manage student information, grades, attendance, and communication.

E-learning Platforms: Online learning platforms use SMS to track student


progress, manage course registrations, and issue certif icates.

Administrative Management: Institutions use SMS to generate reports, monitor


student performance, and plan academic schedules.

Parent-Teacher Communication: Facilitates seamless interaction between


teachers and parents about student progress.
8.Future scope

Cloud-based Systems: Moving SMS to the cloud can allow remote access and
improve scalability and availability.

AI Integration: Articial Intelligence can be used for predictive analytics, helping


to identify at-risk students and suggesting interventions.

Mobile Applications: Development of mobile apps to access student data on the


go.

Data Visualization: Enhanced data analysis features such as dashboards for real-
time performance monitoring.

Integration with External Systems: Integration with other educational software


(e.g., Learning Management Systems or nancial systems) for amore cohesive
approach.

Thankyou

You might also like