Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Driver.cpp
Stack.cpp:
stack.h
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started