Requirements
Create an in-memory student database
Student class
public class Student
{
public int Id { get; set; }
public string Name { get; set; }
public string 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
>
byeSimilarly, you can create update functionality as well.
Optional Requirements
Last updated