[SOLVED] CSCI203 Algorithm And Data Structures Lab2

24.99 $

Category:

Description

5/5 - (1 vote)

Objectives

  • To practice solving problems using stack
  • To be able to manipulate stack
  • To practice writing solutions to problems in a clear and succinct way

 

Problem

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

 

  1. Delete items

 

  1. Show the number of items

 

  1. Show min and max items

 

  1. Find an item

 

  1. Print all items

 

  1. 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().