Starting from:

$25

CSCI203-Lab 2 Solved

Write a program to create a Stack data structure that store integer data values. Your program should display a menu of choices to operate the Stack data structure. See the sample menu below:

==================================================

                               Stack  Operations Menu

==================================================

1.  Add items

 

2.  Delete items

 

3.  Show the number of items

 

4.  Show min and max items

 

5.  Find an item

 

6.  Print all items

 

7.  Exit

 

Enter your choice:1

 

Do not implement the stack with STL. The stack must be implemented using a fixed size array. The stack functions (i.e.  push(), top(), pop(), isEmpty() ) should be implemented below the main() and prototyped above the main().    

 

More products