Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with the C++ code for this problem! C++ STL Vectors and List Create a class called Stouks and provide the following members:

Please help me with the C++ code for this problem!

image text in transcribed
C++ STL Vectors and List Create a class called Stouks and provide the following members: - Company Name - Ticker Symbol - Share price - 3 argument constructor with default values - display-0 shows the labeled data of the object in a professional format In main create a std::list of Stonlrs. Create 5 Stonk objects using the constructor and provide different information for each one. Add these to the list Create a std::vector of 5 Stonk pointers. Set these pointers to each of the objects in the list Using a for loop and a list::iterator, display all of the Stouks in the list Utilize random access {brackets with index) to change the name of the 2.1m Stonk {index 3). Display the Stonk objects from last to rst using the vector in a for loop. Clear both containers. Follow the instructions carefully. Changing the name will require a knowledge of pointers, iterators and the order of operations. 1f the program does not follow the assignment specications it will receive a failing grade regardless of the output. Turn in your work as before

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

Strategic responses to the standardisation question

Answered: 1 week ago