Calvin seal CS 108: Introduction to Computing
Spring 2006

Comments for Lab #04

Eclipse

A trick you can use to make writing and reading your code easier is to indent it---or better yet: have Eclipse indent it for you. If you select the Source -> Format menu item, it will format the code in the current file. This indents the code based on the structure of code. This makes it more readable, and easier it is to read code, the easier it is to debug it.

Keep in mind that readability is not just for you. It's for anyone who would read your code. In the workplace, this would be other programmers; in college courses, it's graders who will mark you down if you don't format your code properly. It's such an easy thing to control, that you definitely do not want to lose these points.

Lab Work for Lab #04

Note that the links open up new browser windows. That's because you're leaving the 108 website. This page clarifies certain issues in the lab manual, and so you'll find it useful to keep available.

Hand's on Testing Java's Prelab questions. Do these before your scheduled lab, reading the lab exercise to answer the questions. Check the webpage on electronic submission for suggestions for turning in your answers.

Hand's on Java's Lab exercise. Work through this exercise during the lab. Make a careful note of the changes listed above (if any) before working on this lab. Again, check the webpage on electronic submission for instructions on submitting your work.

Go to the schedule for your next project.