CS 161 Lab G - Bouncing Balls

Due Fri Oct 25 at 9:00am

Overview

In this lab, you will modify an existing program in order to create an animation of a number of colored balls bouncing around in a box, changing properties (e.g., color, size, speed) when they hit the walls. Because there are too many balls to keep track of individually, you'll need to use an array to track them all.

This lab will be completed in pairs. Be sure to review the pair programming guidelines. You also must work with a different partner than you have before!

Objectives

Necessary Files

You will need to download and extract the BlueJ project from the LabG.zip file. This project will supply you with the following classes:

Assignment Details

In this lab, you will not need to write any new classes! However, you will need to modify some existing classes in order to add in extra functionality.

Submitting

Make sure both your names are at the top of each file, and upload the entire project directory to the LabG submission folder on hedwig. Only one partner needs to upload the code. Make sure you upload your work to the correct folder! The lab is due at the start of class the morning after lab.

After you have submitted your solution, log onto Moodle and submit the Lab G Partner Evaluation. Both partners need to submit evaluations!

Extensions

Here are some further options you might enjoy. Be sure to finish the main part of the program first!

Grading

This assignment will be graded on approximately the following criteria: