Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Manage Variable Objects Using Vector and Multiple Classes Solve problem, design solution and implement using C + + classes and objects Learn how to manipulate

Manage Variable Objects Using Vector and Multiple Classes
Solve problem, design solution and implement using
C++ classes and objects
Learn how to manipulate a list of C++ objects using vector class
Use C++ stream to read in data and format output
Description:
Write a command-driven program named "ManageVariableObjects" that will accept the following commands:
display the current value of the variable in the following format )>(
Solve problem, design solution and implement using
C++ classes and objects
Learn how to manipulate a list of C++ objects using vector class
Use C++ stream to read in data and format output
Description:
Write a command-driven program named
"ManageVariableObjects" that will accept the
following commands:
C++>
vector class.
It means that the Variable object is outside the vector object and you must create the objects using "new" operator.
6. Simple error check for variable names: cannot start with a digit.
7. There must be at least 5 functions including main()
8. Please do not use arrays. You must use the C++ vector class to manage the list of object pointers.
9. The vector must be a private data member in the "VariableListManager" class. No vector class and object can be referenced or used outside the VariableListManager class.
10. Please minimize redundant code. Please write functions if you need to perform the same tasks multiple times.
11. There should be at most one return statement in each function.
12. Please do not iterate through the list in the vector more than once for each task and please do not iterate to the end of the list unnecessarily.
and not to keep track of its actual number of variables separately because the vector object has its size.
14. You can assume that the user enters the variable assignment correctly (e.g. correct '=' operator and integer value separated by blanks)
15. All data members must be declared private in the class.
16. The "Variable" class must not provide the default constructor.
Sample output of a program run:
Please note that the output of the proj
Here is the new additional run and outp C:> ManageVariable0bjects
Please enter variable assignment, varia 1count
Undefined
count
Undefined
count =10
count (10)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

differentiate between challenge and hindrance demands;

Answered: 1 week ago