Director office requires applications from students for the award of scholarship. Each student is required to submit reg no, name, semester and capa in the last semester. The form recived are placed one over the other initially the administration don't know how many student will apply After reciving all the applications the administration check each application and formulate a list of students whose cgpa is more than 3.8 This list contains the student on top who applied first You are required to implement this senarioin C++ Assuming primitive functions are already given just tell which ADT or data structure is used to implement this
The best ADT to hold data about the applied students is a stack. When the data is pushed into the stack, the student who applies earlier would be on the bottom of the stack, but when the data will be poped to select the students with big enough cgpa, the earlier applied data occur at the top.
Comments
Helpful!
Leave a comment