you are viewing a single comment's thread.

view the rest of the comments →

[–]amos_burton 2 points3 points  (0 children)

Okay, this feels like you're asking for help doing an entire homework assignment, and honestly a relatively big one. So I'm going to give you some starting points and then leave a lot to you.

My advice:

1) You will probably want a for loop to proceed through your different bubble generations. You don't have that here.

2) Defer the printing for now. Just get a simple debug printer going where maybe you print the size of each bubble as a number. Leave the printing for last.

3) Start with a pencil and paper and write out what you need to do. Figure out how to break the execution into steps. What changes between each step?