2
Assignment #8 (Stack and Queue) 1. Write an object oriented menu driven program with the following functions to implement a dynamic stack storing empno, empname and salary of different employees: Constructor Push operation Pop operation Display the contents of the stack Destructor 2. Write an object oriented menu driven program with the following functions for a static stack storing pincode and cityname of different cities: Constructor Push operation Pop operation Display the contents of the stack 3. Write an object oriented menu driven program with the following functions to implement a dynamic queue storing busno and passengername of different passengers: Constructor Insert operation Delete operation Display the contents of the queue Destructor 4. Write an object oriented menu driven program with the following functions for a static queue storing bookno, bookname and price of different books: Constructor Insert operation Delete operation

STACK AND QUEUE

  • Upload
    sangita

  • View
    48

  • Download
    0

Embed Size (px)

DESCRIPTION

Assignment #8

Citation preview

Page 1: STACK AND QUEUE

Assignment #8(Stack and Queue)

1. Write an object oriented menu driven program with the following functions to implement a dynamic stack storing empno, empname and salary of different employees:

Constructor Push operation Pop operation Display the contents of the stack Destructor

2. Write an object oriented menu driven program with the following functions for a static stack storing pincode and cityname of different cities:

Constructor Push operation Pop operation Display the contents of the stack

3. Write an object oriented menu driven program with the following functions to implement a dynamic queue storing busno and passengername of different passengers:

Constructor Insert operation Delete operation Display the contents of the queue Destructor

4. Write an object oriented menu driven program with the following functions for a static queue storing bookno, bookname and price of different books:

Constructor Insert operation Delete operation Display the contents of the queue

5. Write an object oriented menu driven program with the following functions for a circular queue storing flightno and flightname of different flights:

Constructor Insert operation Delete operation Display the contents of the queue