Question: need help on c++ programming please Driver.cpp Stack.cpp: stack.h Lab Assignment 1 As promised, here is a fun guessing game: a program chooses a container

need help on c++ programming please

need help on c++ programming please Driver.cpp Stack.cpp: stack.h Lab Assignment 1

As promised, here is a fun guessing game: a program chooses a

Driver.cpp

container for you, but you don't know what it is. A container

Stack.cpp:

can be a stack (Last In First Out), a queue (First In

stack.h

First Out), a priority queue (Most "Im- portant" One Out), and a

Lab Assignment 1 As promised, here is a fun guessing game: a program chooses a container for you, but you don't know what it is. A container can be a stack (Last In First Out), a queue (First In First Out), a priority queue (Most "Im- portant" One Out), and a mob (Random One Out). The new container types are the queue, the priority queue and the mob For a priority queue, some characteristic of the stored data determines the priority. For example, for a numeric priority queue, the magnitude of the number may determine its priority (hence we can have a Max priority quene or a Min priority queue) In a mob container the number that comes ou is selected at random. A mob is also sometimes called a bag, which means that you can reach into the bag and grab one of the stored items at random The object of the game is to gucss what container the program sclected for you, by just looking at the input and output data. You do not need to submit anything for this task of the lab, so just play and have some fun, but make sure you understand how the four containers work. Get the following files for the game code: RanGen.h. RanGen.cpp, Containerh, and GameDriver.cpp. These can be found in the github repo 2C+developers have been very nice to you. Inside the STL there is a class called a stack. We are going to use this stack to reverse the characters in a string. For this task create a function called string stringReversall (string input)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!