CS100M --> Notes --> Lecture Handouts

Lecture handouts and the associated reading from the textbooks are listed here. Typically, lecture handouts are sketches of the lectures and may contain example programs that are too long for students to copy in class. Lecture handouts are not complete transcripts of the lectures. You are expected to attend lecture and to take notes for yourself.

ML: MATLAB Programming for Engineers (2 ed.), S. J. Chapman
JV: Java Software Solutions: Foundations of Program Design (2ed update), John Lewis and William Loftus

Date Topics Files Reading
1/22 T Intro to CS100 Overview ML: Ch 1
1/24 R Problem solving, MATLAB program, variable & assignment, input, sequential execution h0124.pdf ML: Sec 3,1, 3.2, 2.1, 2.2, 2.5, 2.8 (exclude matrix operations), 2.9
JV: p 1--23 optional
1/29 T Selection statement, input, good programming style h0129.pdf ML: Sec 3,3, 3.4.1-3.4.3, 2.2.4
1/31 R Selection (cont'd), MATLAB built-in functions, introduction to iteration h0131.pdf ML: Sec 3,3, 3.4.1-3.4.3, 4.1
2/5 T Iteration using while, intro to 1-d array h0205.pdf
h0205com.pdf (completed examples)
ML: Sec 4.1, revisit Sec 2.1-2.4, 2.8 for discussion on 1-d array (exclude matrix)
2/7 R Intro to 1-d array (vector), more iteration h0207.pdf
h0207com.pdf (include algorithm for Ex4)
ML: Sec 2.1-2.4, 2.8 for discussion on 1-d array (exclude matrix)
2/12 T Program design, trace, review h0212.pdf -
2/14 R for loop, vectorized code, intro to user-defined function h0214.pdf ML: Sec 4.2-4.5 (exclude 4.2.2), revisit Sec 2.8.2 (exclude matrix operations), Sec 5.0, 5.1
2/19 T User-defined function h0219.pdf ML: Sec 5.1, 5.2 (optional: Sec 5.3 - 5.7)
2/21 R Characters and strings h0221.pdf with solutions ML: Sec 6.2 (exclude 6.2.5, 6.2.8 and example 6.2)
2/26 T 2-d array--matrix, file I/O h0226.pdf ML: Sec 2.3, 2.7 (review Sec 2.2, 2.4)
2/28 R Logical arrays, more matrices, random number generator h0228.pdf ML: review Sec 4.3
3/5 T Simulation h0305.pdf
h0305com.pdf (pi example completed)
-
3/7 R Java fundamentals, CodeWarrior demo h0307.pdf JV: Sec 1.4, 2.1-2.4
3/12 T The Math class, conditional statement, user input h0312.pdf JV: Sec 2.6 (exclude the Random class), 2.7, 3.1, 3.2
3/14 R Iteration (while loop, CodeWarrior demo) h0314.pdf
h0314com.pdf (Ex 2 completed)
JV: Sec 3.6
3/26 T The for loop, String objects, intro to OOP h0326.pdf
h0326com.pdf (last example completed)
JV: Sec 3.8, 3.9, 2.5, 4.1
3/28 R Objects & classes, variables, methods h0328.pdf JV: Sec 4.1-4.3
4/2 T Objects & classes: methods, constructor h0402.pdf JV: Sec 4.3-4.5, 5.1, 5.2
4/4 R Encapsulation, client-server model, search h0404.pdf JV: review Sec 4.1-4.5, 5.1, 5.2
4/9 T Review of OOP concepts, one-dimensional array h0409.pdf JV: Sec 6.1, "Selection Sort" in Sec 6.3
4/11 R Sorting, array of objects h0411.pdf JV: Sec 6.2, "Selection Sort" in Sec 6.3
4/16 T Array of objects (cont'd), method overloading h0416.pdf
h0416com.pdf (w/ overloaded constructors)
JV: review Sec 4.5
4/18 R Review, Intro to inheritance h0418.pdf JV: Sec 7.1
4/23 T Inheritance: extend, super, and override see last lecture handout (4/18) JV: Sec 7.2, 7.3(exclude "shadowing variables" on pp.333,334)
4/25 R Method invocation, static, polymorphism h0425.pdf
House.java
JV: Sec 7.4, 7.5
4/30 T Polymorphism review, Object and abstract classes, 2-d array h0430.pdf JV: Sec 6.4
5/2 R 2-d array, course overview h0502.pdf JV: Sec 6.4, review char and String in Sec 2.4, 2.5