Lab for Classes

Group of two with each of you choosing a vehicle class to code. Each create one vehicle. A master programmer creates one program that creates two of each vehicle. Then it tells which has the highest average speed and lowest average cost.

Step 1:

Each person creates their own vehicle class. It must contain speed, cost, name and 2 other fields you choose. Code just constructor, toString and getSpeed and getCost methods.

Remember good comments and look at your javadoc. Comment class author and purpose and give your partner's name, method purpose and parameters and return at a minimum. Use the comments on this class as a guide.

Get the code onto one machine using email (recommend attaching) or google docs

Step2 :

Master creates one new class using pair programming (looking over the shoulder). Please consider using ammyy.com or google hangout screenshare to work in groups when you are not in the same location.

Step 3:

When done, the master uploads all 3 classes to moodle and back to the partner. Every team member should upload the same 3 classes to moodle.