I need help with compsci. In this assignment, you will redo the IntCollection assignment, but you will use a vector inst

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I need help with compsci. In this assignment, you will redo the IntCollection assignment, but you will use a vector inst

Post by answerhappygod »

I need help with compsci.
In this assignment, you will redo the IntCollection assignment,
but you will use a vector instead of an array. This will make
things much easier!
Here is a class declaration. The only member data is a
vector holding ints, your job is to implement the six member
functions.
Because a vector handles everything we need under the hood, we
don't need the addCapacity function, constructors, or a
destructor. The rest of the functions are described
below. They should be simple to implement, most only require
one or two lines!
What to Submit?
You should test all of your functions to your own satisfaction
using a test program, e.g. a main() function in main.cpp.
Make sure your tests demonstrate all of the required
functionality including multiple assignments on the same line and
multiple insertions on the same line. Paste sample output
showing your test results at the bottom of your main program file
main.cpp.
Submit a zip file containing three
files to Canvas:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply