OOP (S2) Assignment1
OOP (S2) Assignment1
_
Department of Computer Science
CS1141 - Object Oriented Programming Lab
ASSIGNMENT NO. 1
Semester: Spring 2025 Max Marks: 10
Instructor: Arooba Sadaqat
Assigned Date: 12-03-2025 Due Date: 10-03-2025
Name: Reg. No.
Instructions:
• Cheating Cases will result in ZERO marks.
• There will be 5 MARKS Deductions for Late submissions.
• Take Screenshots of Output and attach it in word file. Submit Final word File with your
Name and Reg. No as (Name_RegNo).
Create a structure of students with some attributes i.e S_ID, S_name, S_regno, S_cgpa etc.
Then Implement following 5 functions (Known as CRUDS operations which means
CREATE, READ, UPDATE, DELETE, SEARCH operations):
1. addAStudent
2. updateAStudent
3. deleteAStudent
4. searchAndDisplayAStudent
5. displayAllstudents
After that, create an array of 5 student in main function. Create a menu in main function to
enable user to select and perform the operations we created above. Program must not exit
until and unless user wants to do so.
Sample Output:
Main Menu
---------------
Press 1 to add a Student.
Press 2 to update a Student.
Press 3 to delete a Student
Press 4 to search and display a Student
Press 5 to display all Student Press e to exit the program