Highlights
A) Fixed-sized Stack
Your task for Part A is to fully implement the “BookFixedStack” class. The BookFixedStack class is a fixed stack that holds Book objects. This stack class is initialized to a fixed size – the “top” variable indicates the top of the stack.
(Note that if the stack is empty, top should be -1).
The fixed stack methods that need to be implemented are as follows:
public boolean push(Book book)
public Book pop()
public Book peek()
public boolean isEmpty()
public boolean isFull()
B) Variable-sized Stack
Your task for Part B is to fully implement the “BookVariableStack” class. The BookVariableStack class is a variable-sized (i.e., resizable) stack that holds Book objects. This stack class is initialized to a starting size – the “top” variable indicates the top of the stack. (Note that if the stack is empty, top should be -1).
The fixed stack methods that need to be implemented are as follows:
public void push(Book book)
private void expand()
public Book pop()
private void shrink()
public Book peek()
public boolean isEmpty()
public boolean isFull()
public int size()
C) Implement Queue
Your task for this assignment to fully implement the “PersonQueue” class. The PersonQueue class is a FIFO queue that holds Person objects. This queue does not have a fixed size – the “head” variable points to the first Person in the queue (next to be removed) and the “tail” variable points to the last Person in the queue (last to be removed). Note that if the stack is empty, head and tail should be null.
The queue methods that need to be implemented are as follows:
public void enqueue(Person person)
public Person dequeue()
public Person peek()
public boolean isEmpty()
public int size()
public void reverseInPlace()
public void clear()
public int removeAgeBelow(int value)
This IT and Computer Science has been solved by our PhD Experts at My Uni Paper. Our Assignment Writing Experts are efficient in providing a fresh solution to this question. We are serving more than 10000+ Students in Australia, the UK, and the US by helping them to score HD in their academics. Our Experts are well-trained to follow all marking rubrics and referencing styles.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.