Question
Assume that you are tasked to develop a class attendance based system for Richfield. Your job is to keep track of the cumulative frequency of
Assume that you are tasked to develop a class attendance based system for Richfield. Your job is to keep track of the cumulative frequency of students per qualification from the beginning of the semester until the end of the semester. The system must take into consideration both the number of dropouts and the number of students admitted mid-semester. Using a linked list data structure, you need to design and implement a stack-based solution to this problem. The stack should have the following methods:
push: Add a new item to the top of the stack
pop: Remove the item from the top of the stack
peek: Return the value of the item at the top of the stack without removing it
isEmpty: Return a boolean indicating whether the stack is empty
size: Return the number of items in the stack.
Note: In this solution, the stack must not use any libraries or pre-existing data structures. You must implement the linked list from scratch.
PLEASE SEND CODE AS WELL MARKS(30)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started