I want to Implement a STACK class using linked structure to store the following information about students:

i. Registration number of the student

ii. Name of the student

I want to Write client code, such that based on the registration number of the students,

Then I want to Retain only the record of the students enrolled in the fall semester and pop out all the student

records enrolled in the spring semester

students enrolled in spring semester have their registration number start from f like f010123 and students enrolled in spring have their registration number start from s.

I know to implement stack using array but not using linked list. Can anybody help me to solve this problem??

Thannnks in Advance