c project
c project
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)
def display_students():
if not students:
print("No student records found.")
return
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