CS 302 Lecture 6 Home Page
Fall 2011, LECTURE 6 HOME PAGE
Lecture Information
Lecture
Instructor
- Rob Atlas
Email: ratlas AT cs.wisc.edu (include CS 302 with a descriptive subject)
Office: 1301 CSS
Office Hours: M: 12:00 - 1:00 PM T: 1:00 - 2:00 PM Th: 5:00 - 6:00 PM or by appointment
Lectures, Resources, Homework
-
Wed 12/14: Exam Prep, Wrap-up
Lecture Outline: Microsoft Word , Html
-
Mon 12/12: Interfaces, Comparable, Exam Review
HW - For Wednesday - Program 4
Code: Drivable Interface , Bike Class , Car Class , Drivable Tester , Sample Exam - Written Question 1
Lecture Outline: Microsoft Word , Html
-
Fri 12/09: Interfaces
HW - For Monday - Program 4
Lecture Outline: Microsoft Word , Html
-
Wed 12/07: Class Hierarchy, Inheritance
HW - For Friday - Finish ch. 9
Code: Vehicle Class , Tester Class , Bike Class , Car Class
Lecture Outline: Microsoft Word , Html
-
Mon 12/05: Building Exception Classes, Class Hierarchy
HW - For Wedneday - Read ch. 9.1-9.4
Code: Verifying input with our own exceptions , InputTooShortException , ContainsA4Exception
Lecture Outline: Microsoft Word , Html
-
Fri 12/02: Finally Blocks, Exception Wrap-up
HW - For Monday - Get started on Program 4!
Code: Using finally
Lecture Outline: Microsoft Word , Html
-
Wed 11/30: Catching Exceptions
Code: Errors , Unchecked Exception Handling , Checked Exception Handling , More Complicated Exception Handling
Lecture Outline: Microsoft Word , Html
-
Mon 11/28: Intro to Handling Exceptions
HW - For Wednesday - Finish Program 3
Code: Email Reader , Sample email file
Lecture Outline: Microsoft Word , Html
-
Wed 11/23: Processing Input
HW - For Monday - Finish Reading ch. 8, Finish Program 3
Lecture Outline: Microsoft Word , Html
-
Mon 11/21: Input (Reading Files), Output (Writing Files), Exceptions
HW - For Wednesday - Work on Program 3
Code: Reading and Writing Files , Reading a Web Page
Lecture Outline: Microsoft Word , Html
-
Fri 11/18: Bonus Class - Steganography
HW - For Monday - Read ch. 8.1-8.3
Code: Steganography , Image Reader
Lecture Outline: Microsoft Word , Html
-
Wed 11/16: Review
HW - For Friday - Study
Code: Envelope Class , Letter Class , Input Validation Class , Validator Class
Lecture Outline: Microsoft Word , Html
-
Mon 11/14: Public/Private, Overriding .equals
HW - For Wednesday - Study
Code: Country Class , Override .equals
Lecture Outline: Microsoft Word , Html
-
Fri 11/11: Command Line Arguments, Refactoring, Packages
HW - For Monday - Country class, Work on Program 3, Study for Exam 2
Code: Command Line Arguments
Lecture Outline: Microsoft Word , Html
-
Wed 11/09: Class Members - Class Variables, Class Constants, Class Methods
HW - For Friday - Get started on Program 3. Try to get the game window to pop up.
Code: Grocery Store , Aisle , Food Item , Bank Account
Lecture Outline: Microsoft Word , Html
-
Mon 11/07: Thinking like an Object-oriented Programmer, Parallel Arrays, Overriding toString, Helper Instance Methods
HW - For Wednesday - Expand the Grocery Store Class
Code: Grocery Store , Food Item
Lecture Outline: Microsoft Word , Html
-
Fri 11/04: Testing Classes, Constructors
HW - For Monday - Finish ch. 7
Code: Voting Machine Tester , Circle Class , Circle Tester
Lecture Outline: Microsoft Word , Html
-
Wed 11/02: Instance Variables, Instance Methods
HW - For Friday - Create a Circle class
Code: Voting Machine
Lecture Outline: Microsoft Word , Html
-
Mon 10/31: Intro to Object Oriented Programming
HW - For Wednesday - R7.1, R7.2, R7.4, R7.7, R7.8
Lecture Outline: Microsoft Word , Html
-
Fri 10/28: Arrays of Objects
HW - For Monday - Read 7.1-7.4
Code: Array of Strings
Lecture Outline: Microsoft Word , Html
-
Wed 10/26: More ArrayLists
HW - For Friday - Work on Program 2, Review Exam 1
Code: Inventory (completed)
Lecture Outline: Microsoft Word , Html
-
Mon 10/24: ArrayLists
HW - For Wednesday - Work on Program 2, Catch up on Readings
Code: ArrayList Names , ArrayLists Inventory (incomplete)
Lecture Outline: Microsoft Word , Html
-
Fri 10/21: Null Objects, Recursion (Optional)
HW - For Monday - Read ch. 6.6
Code: Recursive Factorials , Recursive Anagrams
Lecture Outline: Microsoft Word , Html
-
Wed 10/19: Exam 1 Review
HW - For Friday - Read ch. 5.8
Code: Flipping Ten Coins , Parameters Sample Exam Question
Lecture Outline: Microsoft Word , Html
-
Mon 10/17: 2D Arrays, Exam 1 Review
HW - For Wednesday - Think about Review Questions
Code: Tic Tac Toe Board , Exam 1 Topics as 2d Array , More Call Stack Tracing
Lecture Outline: Microsoft Word , Html
-
Fri 10/14: Call Stack Tracing, Arrays as Params, 2D Arrays
HW - For Monday - Study :)
Code: Returning Arrays , Passing Arrays as Params
Lecture Outline: Microsoft Word , Html
-
Wed 10/12: Variable Scope, Call Stack Tracing, Arrays as Parameters
HW - For Friday - Read ch. 6.5
Code: Leap Year , Call Stack Tracing (to go with pdf), Calculate Averages
Call Stack Tracing: PDF
Lecture Outline: Microsoft Word , Html
-
Mon 10/10: Void Methods, Stepwise Refinement
HW - For Wednesday - Read ch. 5.6-5.7
Code: Drawing Program
Lecture Outline: Microsoft Word , Html
-
Fri 10/07: (Static) Methods
HW - For Monday - Read ch. 5.3-5.5
Code: Generate Random Numbers 1 , Generate Random Numbers 2 , 99 Bottles Song
Lecture Outline: Microsoft Word , Html
-
Wed 10/05: Arrays, Searching, Sorting
HW - For Friday - Read ch. 5.1-5.2
Code: For Each Loop , Selection Sort
Lecture Outline: Microsoft Word , Html
-
Mon 10/03: Arrays
HW - For Wednesday - Read ch. 6.3-6.4
Code: Monty Hall problem , Partially Filled Array , Arrays as Pointers
Lecture Outline: Microsoft Word , Html
-
Fri 09/30: Nested Loops, Simulations
HW - For Monday - Read ch. 6.1-6.2
Code: Multiplication Table , Word and Letter Counts , Prime Numbers , Monte Carlo Method
Lecture Outline: Microsoft Word , Html
-
Wed 09/28: Do Loops, Sentinel Values, Loop Examples
HW - For Friday - Finish Reading ch. 4
Code: Input Validation , Sentinel Values , Fibonacci Numbers , Factors
Lecture Outline: Microsoft Word , Html
-
Mon 09/26: While Loops, For Loops, Do Loops
HW - For Wednesday - Read and understand 4.4-4.5
Code: Bank Account , Factorials , Palindromes
Lecture Outline: Microsoft Word , Html
-
Fri 09/23: Boolean Operators, Input Validation, While Loops
HW - For Monday - Read and understand 4.1-4.3
Code: Two-function Calculator , Are we there yet?
Lecture Outline: Microsoft Word , Html
-
Wed 09/21: Decisions, Switch Statements, Booleans
HW - For Friday
Optional Exercises - R3.7,R3.8,R3.19
P3.9,P3.24
Code: Name and Age calculator
Lecture Outline: Microsoft Word , Html
-
Mon 09/19: Strings, If/Else, Nested Statements, Else If
HW - For Wednesday - Finish Ch 3
Code: Easy String Cipher , Number Guessing Game
Lecture Outline: Microsoft Word , Html
-
Fri 09/16: Arithmetic, Random #s, Strings
HW - For Monday - Read 3.3-3.4
Optional Exercises - R2.1,R2.8,R2.13,R2.16
P2.2,P2.12
Code: Quadratic Formula , Random Numbers , 20 Sided Dice
Lecture Outline: Microsoft Word , Html
-
Wed 09/14: Constants, I/O, Arithmetic
HW - For Friday - Read 3.1-3.2
Code: Scanner Input , Division , Order of Operations
Lecture Outline: Microsoft Word , Html
-
Mon 09/12: Variables, Naming, Comments
HW - For Wednesday - Finish Reading Ch. 2
Code: Football Scoring , Maximum Integer
Lecture Outline: Microsoft Word , Html
-
Fri 09/09: Printing, Errors, Variables
HW - For Monday - Read Ch. 2.1-2.4
Code: Print Examples
Lecture Outline: Microsoft Word , Html
-
Wed 09/07: Java, Programs, Hello World
HW - For Friday - R1.6,R1.7,R1.8,R1.11,R1.12,R1.16,R1.18
Code: Hello World
Lecture Outline: Microsoft Word , Html
-
Fri 09/02: Intros, Syllabus, Algorithms
HW - For Wednesday - Read Ch. 1
Course Info