CS 1110 Introduction to Computing using Java    Fall 2009  
11081 TR 09:05 Olin Hall 255 Instructors: David Gries & Lillian Lee  
11083 TR 11:15 Olin Hall 255 Grade: letter or S/U.   Credits: 4
flue image

Handouts

Outline of lectures held so far. html. Contains pdfs of ppt slides and programs used in lectures.

Assignments. On the assignments page.

Labs. All recitation/sections are in the ACCEL lab, in the Engineering Library. We call them labs, and not recitations or discussions or sections.

Here is the grading policy on labs:

  1. You are expected to attend a lab session each week. You do not have to be formally registered in the lab you attend, but you should regularly attend the same lab. If you miss more than 3 labs (or don't do the assignment for 3 labs) without a reasonable excuse given to the Lab TA beforehand, we reserve the right to lower your grade a notch (e.g. from B to B-). We don't do this very often, but we reserve the right to do it.
  2. If you do not complete a lab the week on which it is handed out, complete it at home during the week and show it to your Lab TA the next week.
  3. Labs that are not completed by the next week, without a valid reason, will not be counted.
  4. Please do not email the instructor(s) who to see or what to do if you missed a Lab. Communicate with your Lab TA.

  • Lab 01. Expressions, variables, declarations, and assignments. pdf   html
  • Lab 02. Creating objects, calling their methods, and writing subclasses pdf   html
  • Lab 03. Testing and static variables (two different topics). Since we did not cover testing last lecture, you won't understand much of this lab until after lecture 05.  pdf   html   ThreeDimPoint.java
  • Lab 04. Writing functions that deal with strings. Please study the parts through the discussion of equality and skim the functions that deal with strings BEFORE the lab. pdf   html   Methods.java
  • Lab 05. Class Vector. An instance of class Vector contains a list of 0 more more other objects. We discuss introduce class Vector and ask you to do things with Vectors in order to learn about this important class.   pdf    html    Lab05.java
  • Lab 06. Writing recursive functions. pdf    html   Rec.java
  • Lab 07. Abstract classes.  pdf   html  DemoShapes.java  Shape.java 
                Parallelogram.java  Rhombus.java  Square.java
  • Lab 08. For-loops and assertions. This lab deals with some paper-and-pencil exercises on ranges, assertions, and for-loops. It also asks you to write four functions whose bodies contain for-loops.   pdf    doc   Lab08.java
  • Lab 09. Reading files. pdf   html   LabReadingFiles.java   test.txt   
               or get them all here:  lab09reading.zip
  • Lab 10. Developing loops from specifications and invariants.   pdf   doc   partial_solution.pdf
  • Lab 11. Timing execution.  pdf  doc  Sorting.java    TestArrays.java
  • Lab 12. Exception handling. This lab is optional. During the lab itself, you can work on it or on A7. The TAs and consultants will be there to help. pdf   doc   Lab12.java

First-day handouts.

  • Course details doc    pdf