Question: Create a [ C + + , Windows, Console ] Visual Studio project. 2 . A main CPP file will automatically be created, when the

Create a [C++, Windows, Console] Visual Studio project.
2. A main CPP file will automatically be created, when the project is created.
3. Add two CPP files to the project: myStack.cpp and myQueue.cpp.
4. Each CPP file will have a corresponding .H file, which will be added to the project.
5. myStack.cpp - This file will have three functions:
a. initStack (int size =10)
b. string popStack();
c. pushStack (string);
d. string toString();
e. Note, the default parameters. At bottom of the document show an example of
functions with default parameters.
6. myQueue.cpp This file will have three functions:
a. initQueue (int size =10)
b. string popQueue ();
c. pushQueue (string);
d. string toString();
7. Create a main C++. The name of the file is based on the projects name.
8. Create any other functions that you may need.
Main Program Requirements
1. The program shall display a menu.
a.1). Manage a Stack
b.2). Manage a Queue
c.3). Exit program.
2. Validate the menu selection.
3. If valid, create a Stack or a Queue. Use a vector data structure, for this.
4. The Stack or Queue will hold data that are valid PSU course numbers.
a. i.e. CmpSc330, SRA101, IST331, etc.
5. When finished playing with the Queue/Stack, have user loop back, display the menu, and
make another selection.
6. The main() will end when the user selects the number that represents Exit.

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 Programming Questions!