CPE 102 Lab 2


This lab is to be completed with your assigned partner.

Part 1
Download bluej-examples.zip and unzip it into a working directory on your computer. 

Read The BlueJ Tutorial (pdf) Chapters 3 - 5.2  and carry out the exercises.

There is nothing to submit for part 1.

Part 2
Read the problem statement for the Cooties Game

Download this Python source code solution. 

When you run the program, you will see that is has several errors; its behavior differs from that described in the problem statement.    Identify and correct these errors.

Create a new BlueJ project and create a new class named Cooties.java.
Translate the Python source code into Java.  You will need to look up the syntax for the Java equivalents to the Python statements in your Java textbook.
Compile and execute the program.  If there are defects, repair them until the program works as specified in the problem statement.

Place both student names in separate @author tags in the class header.
Submit the single source code file (Cooties.java) to PolyLearn (Lab 2).  (Each student submits a copy).


Learn More

BlueJ Tutorial and Reference Manual