Write a program to create a linked list of 3 teachers where each Teacher node will contain
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program to create a linked list of 3 teachers where each Teacher node will contain the
following attributes: (8 marks)
• TeacherId
• TeacherName
• Experience
a) Create a method to insert a teacher at the beginning of the list and a method to display the details of
all teachers in the list.
b) Can we use another data structure to store the list of teachers? If yes, Justify your answer.
c) Explain the process of push and pop operations on a Stack?
Related Book For
Statistics Unlocking The Power Of Data
ISBN: 9780470601877
1st Edition
Authors: Robin H. Lock, Patti Frazer Lock, Kari Lock Morgan, Eric F. Lock, Dennis F. Lock
Posted Date: