Add a New Stack operation that takes an argument for the maximum stack size.
Either disable the Push button or report an error if it pressed when the
the stack is full.
Add a Peek operation that animates copying the topmost stack value to a place
near the bottom of the canvas. The colored background of the cell should not
be part of what is "output" by Peek since it is no longer in the stack data
structure. Either disable Peek and Pop or report errors if they are pressed
when the stack is empty.
Allow stack items to be short strings, not just numbers. Adjust the cell size
so the strings can be 8 characters wide.
Add a New Stack operation that takes an argument for the maximum stack size. Either disable the Push button or report an error if it pressed when the the stack is full. Add a Peek operation that animates copying the topmost stack value to a place near the bottom of the canvas. The colored background of the cell should not be part of what is "output" by Peek since it is no longer in the stack data structure. Either disable Peek and Pop or report errors if they are pressed when the stack is empty.
Allow stack items to be short strings, not just numbers. Adjust the cell size so the strings can be 8 characters wide.