Introduction to Computers and Programming: V22.0002
Class Programming Examples and Lecture Notes

Section 4

Important Note: Many of the PowerPoint Slides listed below are adapted from Prentice Hall's resources for the textbook, Introduction to Java Programming 4E by Y. Daniel Liang and are copyright protected.

Click here for Homework Assignments and Sample Midterms


Class Date Topic/Special
Class Programs
Class Lectures
Readings
1 Jan. 20 Introduction
Program: Welcome
chapter 1
Lecture 1
PowerPoint 1
2 Jan.22 Java and NetBeans basics
Programs: Welcome2, Welcome3, Addition, Division
chapter 2
PowerPoint 2
3 Jan. 27

Review and Visit to ITS Lab
(learn to use NetBeans and write a Java prog.)

assignment # 0
4 Jan. 29

Java Primitive types and Operations, continued
circle_area, circle_area_pi, assignment_operators

Assignment #0 due
5 Feb. 3 Java Primitive types and Operations, continued
In-class exercise: Using Mod and Tracing a variable
CastingExample, Pre_Post_Increment, Even_Odd_numbers,
InputDataDemo, InputDataDemoTwo
assignment #1
6 Feb. 5 Control Structure: if/else and switch
characters, ages, grades (#1), grades (#2), dice (using if) and dice (using switch)
chap. 3.1 - 3.2.5
PowerPoint 3:Part 1
7 Feb. 10 if/else and switch, continued
char_entry, grades_example3, grades_example4, directions_using_switch, directions_using_if, switch_example2
Assignment #1 due
8 Feb. 12 if/else and switch, continued
concatenation1, concatenation2, conditional_expressions1, conditional_expressions2, random_numbers1, random_numbers2, random_dice1, random_dice2,
assignment #2
9 Feb. 17

Loop Statemnts: while loop
while_loop_1, while_loop_2, while_loop_3, while_loop_study, while_loop_chars
Music: Pachelbel's "Canon in D Major"

chap. 3.3.1 - 3.3.3
PowerPoint 3:Part 2
10 Feb. 19 while loop, continued; introducing accumulator variables and sentinels with loops
Bad Loops, MaxNumber_1, MaxNumber_2, MaxNumber_3, String_1
Assignment #2 due
11 Feb. 24 more practice with while loops
string1, string2, string3, string4, flag1
assignment #3
12 Feb. 26 break and continue
Music... Guys & Dolls: "Fugue for Tinhorns"
TestBreak, TestContinue ; Prime Numbers
Prime Numbers Worksheet
13 Mar. 2 do-while loop and for loop
DoLoops, ForLoops1,ForLoops2,GeneralForLoops1, NestedForLoops1,NestedForLoops2,NestedForloop3
Art... a visual infinite loop by M.C. Escher
Infinite Loops ("Handteckning" [Drawing Hands], 1948; lithograph.)
Assignment #3 due
14 Mar. 4 Midterm #1  
15 Mar. 9 for loops
String1, String2, String3, Factorials, Exponents
Art... Kilims are rugs with regular patterns ... (Example 1 and Example 2) from Kilims by Lee Allane (1995, London, Published by Thames & Hudson)
assignment #4
16 Mar. 11 for loops and discussion on debugging techniques
MultiplicationTable
Powerpoint: Program Design and Languages
17 Mar. 23 Methods
GreenEggsAndHam, Squares1, Squares2, Squares3
Music: Ravel's "Bolero" 
Assignment #4 due
chap. 4.1 - 4.7
18 Mar. 25 Methods, continued
Maximum, MathMethods, BoxMethods, DemoPassByValue

PowerPoint 4

19 Mar. 30 Methods, continued
Factorials, Powers, ScopeDemo
Assignment #5
4.8
20 Apr. 1 Methods
OverloadingMethods, TempConversions,RandomWords,Statistics
 
21 Apr. 6 Review -- Lab Session
Assignment #5 due
22 Apr. 8 Midterm #2  
23 Apr. 13 Arrays: array1, array2, array3

Art: Sculptures by Louise Nevelson at the Guggenheim Museum and the Whitney Museum of American Art

 
Chap. 5.1 - 5.5
PowerPoint Chapter _05_Part1 and
programs to accompany the slides: TestArray, AssignGrade, TestPassArray, Deviation, CountLettersInArray, TestCopyArray
     
24 Apr. 15 Arrays, continued
array4 , array5,arrayCalculations,DiceArray
Assignment #6
25 Apr. 20 Arrays, continued
ArrayExercise, CopyArray, PassArray
 
26 Apr. 22 Arrays, continued
AssignGrade, StudentPoll
Assignment #6 due
27 Apr. 27 Introduction to Sorts and Applets
Linear Search; Bubble Sort; and
a site to explore sorts and compare various algorithms if you wish!
(Optional Material) Applets

12.1 - 12.4
28 Apr. 29 Review Terms and Concepts
Just for fun: working with shapes! rectangles, arcs, ovals, polygons