Department of Computer Science

PAD II

Spring Semester 1998

Dr. Maury Eggen

Homework Laboratory Assignment 2:


The next assignment of the semester is to experiment with stacks. 

You are to write a menu driven stack model which will allow the user
to create a stack of words. Use an array to model your stack as we
did in class. You should define logical variables Success, Fail, True
and False. Pop and Push should return Success or Fail to their calling
function. Empty should return True or False. Other arguments should 
be in the argument list for the functions. Make sure your functions
check for Stack Overflow as well as Stack Underflow (empty).

Menu choices should be Push, Pop, Display, Stacktop, and Quit. 

Program Due Date: Wednesday, January 28, 1998.