Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer please from 92 to 98 Test 01 Review Question SM08 CSIS210 92. Write an im

ID: 3891150 • Letter: A

Question

answer please from 92 to 98

Test 01 Review Question SM08 CSIS210 92. Write an implementation of clear that sets to null each array location that 93. Write an implementation of clear that repeatedly calls pop until the stack is 4. Discuss the advantages and disadvantages of an array-based implementation 95. Consider the ADT bag, as described in Chapters 1 through 3. was used for the stack empty of the ADT stack as compared to a linked implementation a. Would you be able to implement the ADT stack by using a bag to Contain its entries? Justify your answer. b. Would you be able to implement the ADT bag by using a stack to contain its entries? Justify your answer. 96. Suppose that the ADT stack included the void method display, which displays the entries in a stack. Implement this method for each of the following classes: (LinkedStack- ArrayStack) 97. define the method toArray instead of the method display. Implement this method for each of the following classes:(LinkedStack ArrayStack) 98. Suppose that the ADT stack included a void method remove(n) that removes the topmost n entries from a stack. Specify this method by writing comments and a header. Consider the possible outcomes for stacks that do not contain n entries Answer "True" or "False": 99. A stack has at least these three operations: peek, pop, pus Pseopc

Explanation / Answer

94)Answer:

->Array bases stack is limited to the size of the array as where the linked stack will continue to grow

->An array based implementation of a stack uses an array to store elements.it can store only up to a fixed number of elements .to store more elements we will have to increse the capacity of the array

->if we do not fill in the stack array up to its capacity memory space for the array may be considerbly wasted