CS132 - Computer Science II
Spring, 2014

Dr. Steven K. Andrianoff

Course Resources

Course Syllabus

Course Announcements

  • Mon, Mar 3 - I will be leaving campus by 9:00 on Wednesday. Brandon Kowalski, a senior CS major, will be available Wednesday from 12:30 until around 2:15 to answer any questions dealing with the programming assignment that is due Wednesday afternoon. You can find him in the CS conference room, Walsh 109. There will be class on Wednesday morning - Dr. Levine will give you a quiz.
  • Mon, Jan 13 - Welcome to class. Here is the Lab Overview document handed out in class today.

Labs

Readings

  • Wed, Jan 29 - Read Sections 2.1, 2.2 of Chapter 2
  • Wed, Jan 22 - Read Section 2.3 of Chapter 2 on Exceptions.
  • Wed, Jan 15 - Read the remainder of Chapter 1 (sections 1.4 - 1.9) and bring any questions to class;
  • Mon, Jan 13 - Read Section 1-3 of Chapter 1 - Java Primer; bring questions to class Wednesday. Here is a list of terms from chapter 1 that you should be familiar with.

Homework

  • Mon, Mar 3 - There was code on the mobile white board this morning that is the cause of some major security problems with the iPhone. What is the (logic) error in the code and how would you fix it?
    Write a compareTo method for the Person class where the comparison is based on the name. Include appropriate Javadoc comments.
    Write a compareTo method for the Student class where the comparison is based on the GPA. Include appropriate Javadoc comments.
  • Wed, Feb 19 - Write a program to store a list of 20 random numbers in the range 1-100 in an ArrayList (as you did in Lab 6). Then find the largest value in the list. Consider a list of 1000 values. What is the maximum number of comparisons required to find the largest? What is the minimum number of comparisons?
  • Wed, Feb 12 - Write an Employee class that extends the Person class. Add a field to store salary, write a constructor for the Employee class, add a getter for the new field, override the toString() and equals() methods. Include proper Javadoc comments with your code.
  • Wed, Feb 5 - Modify the Person class by overriding the toString() and equals() methods and by adding a default constructor. Include Javadoc comments with your code.
  • Mon, Feb 3 - Find a definition of polymorphism as it applies to programming. Use the defintion you find in the textbook.
  • Wed, Jan 29 - Exercise R-2.13 (p. 94)
  • Fri, Jan 24 - Find definitions for abstraction, encapsulation, information-hiding, and inheritance as they apply to programming. (Use any definitions you find in the textbook.)
  • Mon, Jan 13 - Complete the worksheet "Type Conversions" for Wednesday

Programming Assignments

  • Programming Assignment 4 - Checking an Array for Order - Write two static methods, one to determine if an array of ints is in ascending order and a second to determine if an array of Strings is in (lexicographic) order. You will also write JUnit tests for the method. This is due Friday, March 8 at 4:00 p.m.
  • Programming Assignment 3 - Fun with Images - Write two new ImageTransformers: ImageRotateCounterClockwise and ImageDarkener2. Due: Fri, Feb 14 at 4:00 p.m.
  • Programming Assignment 2 - Comparing Two Arrays - II - Write two static methods, one to determine if two arrays of ints store the same data in the same order, and a second to determine if two arrays of Strings store the same data in the same order. You will also write JUnit tests for both methods. This is due Friday, Jan 31 at 4:00 p.m.
  • Programming Assignment 1 - Comparing Two Arrays - Write a static method to determine if two arrays store the same data in the same order. Also write a main method to test this method. Due: Fri, Jan 24 at 4:00 p.m.