Question: In c++ or you may submit both 4(a) and 4(b) two separate programs together. (a) Static Stack Create an array of student records (at least
or you may submit both 4(a) and 4(b) two separate programs together. (a) Static Stack Create an array of student records (at least 10) and put all the related stud records information in an array: Student Id, Name, Address and average of test scores and a Pointer to the 10+ Test Scores (at least 10 scores). Display the student records in the array (do not display pointers). -Push all student records from the array to a static stack. Pop 5 student records from the stack and display the popped records. -Display the remaining student records in the static stack. (b) Dynamic Stack Create an array of student records (at least 10) and put all the related student records information in an array: Student Id, Name, Address and average of test scores and a Pointer to the 10+ Test Scores (at least 10 scores). -Display the student records in the array (do not display pointers). -Push all student records from the array to a dynamic stack. Backward chaining in dynamic stack) -Pop 5 student records from the dynamic stack and display the popped records. Display the remaining student records in the dynamic stack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
