Cs 20a c data structures program working with queues and


Data Structures Program: Working with Queues and Stacks

In this assignment, you will implement various helper methods on queues and stacks to reinforce your understanding of these data structures.  

Please download the starter files for this assignment from the Files tab (Assignment7.zip).  Do not alter the class definition or driver code in any way.  Programs that crash are subject to a 50% penalty.   Please submit the class header files only (Queue.h" and "Stack.h").  PLEASE NOTE: You may not use any Standard Template Library (STL) classes for this assignment; use code provided by the instructor only. 

Working with Queues 

1286_Figure.png

1. Create a method on the Queue class that calculates the number of times a given value occurs in the queue. 

2. Create a method on the Queue class that determines whether the queue is in descending order.

Working with Stacks

621_Figure1.png

1. Create a method on the Stack class that determines whether a given value occurs consecutively in the stack. 

2. Create a method on the Stack class that reverses the values on the stack.

Attachment:- Assignment Files.zip

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Cs 20a c data structures program working with queues and
Reference No:- TGS02252633

Expected delivery within 24 Hours