publicclassStudent{publicint Id { get; set; }publicstring Name { get; set; }publicstring City { get; set; }}
The expectations are shown below:
**************** MENU *********************
1) List students
2) Create new student
3) Update student details
4) Delete student
5) Exit
*******************************************
Enter your choice: 1
>
Id Name City
1 Sam NYC
2 Ted BLR
**************** MENU *********************
1) List students
2) Create new student
3) Update student details
4) Delete student
5) Exit
*******************************************
Enter your choice: 2
>
Enter Student ID: 3
Enter Student Name: kim
Enter Student City: SVC
Student kim created!
**************** MENU *********************
1) List students
2) Create new student
3) Update student details
4) Delete student
5) Exit
*******************************************
Enter your choice: 1
>
Id Name City
1 Sam NYC
2 Ted BLR
3 kim SVC
**************** MENU *********************
1) List students
2) Create new student
3) Update student details
4) Delete student
5) Exit
*******************************************
Enter your choice: 4
>
Enter Id of the student to be deleted: 2
>
Kim deleted!
**************** MENU *********************
1) List students
2) Create new student
3) Update student details
4) Delete student
5) Exit
*******************************************
Enter your choice: 5
>
bye
Similarly, you can create update functionality as well.
Optional Requirements
Also have an option in main menu saying "Filter". Upon selecting it, user must be asked to enter city name. Then the system must show only those students who come from that city
Try this using a WinForms project where we have UI to view and create data?