0% found this document useful (0 votes)
4 views

c project

Uploaded by

amarjeet47.in
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)
4 views

c project

Uploaded by

amarjeet47.in
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/ 5

PRESENTATION

A Project On
C - PROGRAMMING
Batch Time – 2024-2026

For
THE PARTIAL FULFILMENT OF THE AWARD OF THE DEGREE OF
“ MASTER OF COMPUTER APPLICATION ”
From
Vivekananda Global University
Jaipur
SUBMITTED BY : SUBMITTED TO:
G2 TEAMS Drs. NARAYAN SIR

STUDENTS NAME
1.AMARJEET KUMAR (24CSA3BC002)
2.ANAMIKA KUMARI (24CSA3BC083)
3.ANIKET RAJ (24CSA3BC084)
4.AKSHITA SHARMA (24CSA3BC001)

Address: Sector 36, NRI Colony Road V I T Campous ,Jagatpura,Seesyawas,Jaipur,Rajasthan


303012
TOPIC
Student management system: develop a system that always
adding deleting ,and displaying students records ,including
fields like name ll grades and more.
• Creating a Student Management System with fields like name,
grades , and more involves designing a program that can perform
the following operations efficiently:
• Features of the System
1. Add a Student :
• Add student details like name , ID , age , grades (per subject or
overall), address , phone number , etc.
• Include input validation for proper data entry (e.g., ensuring
grades are numeric, names contain only letters).
2. Delete a Student :
• Remove a student record based on a unique Student ID or name .
3. Display Student Records :
• Show all records or search for specific students by name, ID, or other
fields.
• Include an option to display grades.
4. Update Student Records (Optional) :
• Modify any field like grades, address, or phone number.
5. Advanced Search and Filter (Optional) :
• Search by performance (grades), age range, or other attribute

#Python Implementation Example


This example uses dictionaries to store student records in memory.
```python
students = {}
def add_student():
student_id = input("Enter Student ID: ")
if student_id in students:
print("Student ID already exists.")
return
name = input("Enter Student Name: ")
age = input("Enter Age: ")
grades = input("Enter Grades (comma-separated for multiple subjects):
")
phone = input("Enter Phone Number: ")
address = input("Enter Address: ")
students[student_id] = {
"name": name,
"age": age,
"grades": [float(grade.strip()) for grade in grades.split(',')],
"phone": phone,
"address": address
}
print("Student added successfully!")
def delete_student():
student_id = input("Enter Student ID to delete: ")
if student_id in students:
del students[student_id]
print("Student record deleted successfully.")
else:
print("Student ID not found.")

def display_students():
if not students:
print("No student records found.")
return

print("\n--- Student Records ---")


for student_id, details in students.items():
grades = ', '.join(map(str, details['grades']))
print(f"ID: {student_id}, Name: {details['name']}, Age: {details['age']},
"
f"Grades: {grades}, Phone: {details['phone']}, Address:
{details['address']}")

def update_student():
student_id = input("Enter Student ID to update: ")
if student_id not in students:
print("Student ID not found.")
return
print("What would you like to update?")
print("1. Name\n2. Age\n3. Grades\n4. Phone\n5. Address")
choice = input("Enter your choice: ")
if choice == '1':
students[student_id]['name'] = input("Enter new name: ")
elif choice == '2':
students[student_id]['age'] = input("Enter new age: ")
elif choice == '3':
grades = input("Enter new grades (comma-separated): ")
students[student_id]['grades'] = [float(grade.strip()) for grade in
grades.split(',')]
elif choice == '4':
students[student_id]['phone'] = input("Enter new phone number: ")
elif choice == '5':
students[student_id]['address'] = input("Enter new address: ")
else:
print("Invalid choice.")
print("Student record updated successfully.")

def menu():
while True:
print("\n--- Student Management System ---")
print("1. Add Student")
print("2. Delete Student")
print("3. Display Students")
print("4. Update Student")
print("5. Exit")
choice = input("Enter your choice: ")

if choice == '1':
add_student()
elif choice == '2':
delete_student()
elif choice == '3':
display_students()
elif choice == '4':
update_student()
elif choice == '5':
print("Exiting the system. Goodbye!")
break
else:
print("Invalid choice. Please try again.")

menu()
```
# Features Explained
1. Grades :
Stored as a list of floats.
Can be updated by modifying the `grades` field.
2. Validation :
Checks for duplicate IDs.
Ensures grades are numeric.
3. Expandable :
Easy to add more fields (e.g., parent's contact information, emergency contact).
• Future Enhancements
1. Persistent Storage :
Store data in a database (e.g., SQLite, MySQL) or a file (CSV, JSON) for
persistence.
2. Web-based Interface :
Use Flask/Django to build a web application for the system.
3. Analysis :
Add functionalities to calculate average grades, top-performing
students, etc.
4. User Roles :
Introduce admin/teacher roles for secure access.
Let me know if you’d like a more advanced system or help integrating this into a
larger project!

THANK YOU

You might also like