Lab 8: Program 3 Evaluation

Purpose

The purpose of this in-lab is to give you practice looking at, learning from, and critiquing code that you did not write. Often, you can learn a lot by looking at how someone else approached a problem such as Program 3 that you have already solved.

Partners

You should work with your Program 3 programming partner on this assignment.

Bring To Lab

Preliminaries

Create a BlueJ project named lab8 on your lab computer. Your lab TA will identify a random team whose Program 3 you will evaluate. Once this team is identified, place the other team's Program 3 solution in the lab8 project and take their printouts of the CardDeck and Card classes. At the top of each printout, write Evaluated by your name, your partner's name.

Assignment

Evaluate the strengths and weaknesses of the other team's program, as it pertains to the Program 3 Requirements. To do this, you will need to run the program and evaluate the correctness of its output, as well as critiquing the code itself. Write down everything that is relevant neatly on the program handouts that you are given. It will be helpful to circle the code that you are writing about and then place your written comments close to the circled code, with an arrow pointing from the written comment to the circled code.

For the weaknesses, be very specific and provide a suggested solution. For example, don't write that the simulation produced a wrong value for the range [17, 21]. Instead, write down what value the simulation produced, what value should have been produced and where the problem in the code is. As another example, if a variable name is not very meaningful state this, but also suggest what a more meaningful variable name would be.

Submission

Before your lab section finishes, hand in your evaluation materials to your lab TA.

Grading - maximum of 10 points possible

Before Lab Ends

Please remember to delete the lab8 directory that you created and empty the recycle bin on your desktop. Thanks.

Valid XHTML 1.0!