Question: This is for a computer Sci data structures class. They recommend using C++, which Ive never really used. Seeking advice on how to approach the

This is for a computer Sci data structures class. They recommend using C++, which Ive never really used. Seeking advice on how to approach the assignment maybe what details I should research for C++ just clarity on steps to take. Im not sure even what to youtube to learn at this point maybe an example code. Thanks for the help.

This is for a computer Sci data structures class. They recommend using

Assignment 1 (Bag of Marbles): Make a list of properties (variables) and behaviors (methods) for a bag of marbles 1. Include at least: 1. some way of representing your marbles, 2. a way to add new marbles into the bag, 3. a way to remove a marble out of the bag (perhaps a random marble?), 4. a few ways that you could use to show that your implementation would be working correctly, (perhaps you start with an empty bag, put a marble in with some known values, then you pull the marble out and verify that it has the same values, perhaps you try to pull a marble out of an empty bag, perhaps you try to add 3 billion marbles... maybe you do not have to go that high or maybe your implementation is smart enough to deal with this :) ) 2. implement your bag of marbles in a program as simply as possible! test the implementation in a driver file with your tests Note: This assignment is intended to get you thinking about how simple your implementations could be to make sure your programming environment is setup properly, and to get you thinking about how we store data in different containers

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