Answered step by step
Verified Expert Solution
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 objects using vector class
Use C stream to read in data and format output
Description:
Write a commanddriven 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 commanddriven program named
"ManageVariableObjects" that will accept the
following commands:
vector class.
It means that the Variable object is outside the vector object and you must create the objects using "new" operator.
Simple error check for variable names: cannot start with a digit.
There must be at least functions including main
Please do not use arrays. You must use the vector class to manage the list of object pointers.
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.
Please minimize redundant code. Please write functions if you need to perform the same tasks multiple times.
There should be at most one return statement in each function.
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.
You can assume that the user enters the variable assignment correctly eg correct operator and integer value separated by blanks
All data members must be declared private in the class.
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: ManageVariablebjects
Please enter variable assignment, varia count
Undefined
count
Undefined
count
count
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