Group Activity # 7: Frogs, Dice, and Emperors of Ice Cream

Introduction

You should start this group activity by introducing each member of the group. One group member should be the scribe, this person is responsible for recording the group's endeavors.

Part I: Metadice

You are responsible for writing a program that will keep track of rolling two N-sided dice 100,000 times. The number of sides, N, might be 6, 100, or even 200. Your group should discuss how to create a program that will work for any N, where N --- the number of sides --- is known to you but might change. It would be nice if your program prompted the user for how many times to roll the two N-sided dice.

You CANNOT use vectors/arrays in writing this program (in case you know about these things). Hint: consider writing a program that prints a program. You can sketch the solution if you don't have time to write the entire program.

Part II: Frog-hopping encore une fois

You will modify the class RandWalk so that the number of times each location the ``frog'' visits is stored. For example, if the frog travels on the coordinates 0, 1, 2, 1, 2, 1, 0, -1, -2, -1, 0 a chart of visits might show:
    -2: *
    -1: **
     0: ***
     1: ***
     2: **
You don't need to have a chart, a table of numbers is ok. You are to decide what private data member(s)/field(s) are needed to keep track of this information and how the field(s) will be initialized. Adding new data members will require changing some of the member functions to update the fields. You should also write a member function Chart that displays the information stored in the private section. You can display the information in any way.

You SHOULD use a vector for this part of the assignment.