Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

1. What are your creative strengths?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago