CS302 Lecture 9 Home Page

In This Page: Announcements | Readings | Assignments | Class Notes, Handouts & Links | Examples



Instructor: 
Laura D. Goad
Section 21:
Section 20:
Mon. & Wed. 5-6:15pm; 1207 CS&S
Mon. & Wed. 6:30-7:45pm; 1207 CS&S
E-mail: goadl@cs.wisc.edu
Office: Computer Science & Statistics 1343
Phone: 262-5596
Office Hours:
Mon. & Wed. 7:45-8:45pm
Thurs. 5-6pm
or by appointment
 
Announcements
     
  • The only way to add CS302 or change sections is through the touch-tone system.
  • Grade discrepancies must be finalized within two weeks after the graded assignment is returned.

  • Lesson 0 is due Wednesday, January 29th via e-mail.
  • Readings, assignment and lesson deadlines are posted on the syllabus.

  • Wednt Library has copies of both the book (now) available at the front desk.
  • The first exam is Tuesday Feb 25, from 7:15 to 9:15 (+30 minutes) location B371 Chemistry.
  • The second exam is Tuesday April 8, from 7:15 to 9:15 (+30 minutes) location B371 Chemistry.
  • The third (and final) exam is Friday May 16, from 10:05-12:25 (no extra 30 minutes) location Psychology 121.

Readings


Chapter  Notes
Chap. 0 Introduction to computers and programming 
(Skim Sections 3 & 4)
Chap. 1 Introduction to OOP and Software Development (Sections 1 to 6)
Chap. 2 Java Programming Basics (not section 2.6)
Chap. 3 Numerical Data (Section 3.8 is optional)
Chap. 4 Defining Instantiable Classes (Sections 1 to 5)
Chap. 6 Selection Statements (Sections 1 to 6)
Chap. 7 Repetition Statements (Section 7.10 is optional)
Chap. 8 Character and Strings (Sections 1 to 7)
Chap. 9 Arrays (Sections 1 to 8)
Chap. 11 File Input and Output (Skim section 5)
Chap. 12 Reusable Classes and Packages (Sections 1 and 2)
Chap. 14 Inheritance and Polymorhpism (Sections 1 to 4)
Assignments

  • Assignments should be handed in electronically using the hand in program unless otherwise specified.
  • The links for the assignments and the lessons are on the far left side of this browser frame.
  • Consult the syllabus at the left hand side of the web page for information pertaining to lessons and assignments.


Assignment Date&Time Due  Notes
Lesson 0 9/10/2002 @ 5pm This assignment is completed through e-mail.
Class Notes, Handouts & Links



Chapter  Class Handouts
Chap. 1 Chapter 1 Progress Check
Class Notes
Chap. 2 Chapter 2 Progress Check
Class Notes
Chap. 3 Chapter 3 Progress Check
Class Notes
Chap. 4 Chapter 4 Progress Check
Class Notes
Chap. 6 Chapter 6 Progress Check
Class Notes
Chap. 7 Chapter 7 Progress Check
Class Notes
Chap. 8 Chapter 8 & 9 Progress Check
Class Notes
Chap. 9 Chapter 8 & 9 Progress Check
Class Notes
Chap. 11 Chapter 11 Progress Check
Class Notes
Chap. 12 & 14 Chapter 12 & 14 Class Notes


Useful Links:  Many links that you need can be found on the menu bar to the left. Here are some additional links that will help introduce you to Java. Also included are some links to computer related sites. 
Examples

  • The following examples are for your reference.  The examples are grouped with their corresponding chapter.  To understand the examples, you will need to read the chapter specified and any previous chapters that were covered.
  • Solutions to the discussion exercises can be found at the examples link.
  • These examples come from past and current cs302 tas and coordinators. 


Chapter  Examples
Chap. 2 Tic Tac Toe
Chap. 3 CastingExamples.java,
Cylinder Volume Calculation
,
Dice,Move.java,Mark.java
Chap. 4
BMICalculator,
Scooping Exercise
,
Chefs,
 ConstructorTest,
SimpleMug
,
ParameterPassing
,
MessageSending
(Soln)
Chap. 6
Apartment,
Coins&Polls
,
TripleRollGame
Chap. 7 Rules.java,Board.java,Player.java,
Magic8Ball.java
,
Cars
,
LoopsExample
Chap. 8 Palindromes.java 
Chap. 9 Naive Bubble Sort ,
2-Darrays
,
Deck
& Card
Chap. 11 Board.java,
Oops1.java
, Oops2.Java
Chap. 12 Oops3.java,
SimpleDate.java
,
Oops4.java
,
Date.java
, InvalidDateException.java,
ExceptionExample
Chap. 14
Inheritence,
Encoder
, Decoder
Last Updated: 1/22/03        © 2002 Laura D. Goad, CS302 Coordinator, goadl@cs.wisc.edu