http://dora.case.edu/msb/131
http://vorlon.case.edu/~msb11/131
Programs to check out: HelloWorld.java, helloworld.c (C), helloworld.cc (C++), helloworld.m (Matlab), helloworld.py (Python)
Reading: D&D 2.5, 2.6, 3.8 (only through Common Programming Error 3.4), p. 103 (read about Line 23 in the last paragraph), p. 88 (read about Line 19 in the middle of the third paragraph). Also, check out Appendix D.
Programs to check out: DeclareAndPrintDemo.java, FormattedTextDemo.java, ScannerDemo.java
Reading: D&D 2.7, page 234 (from top of page through the first 3 sentences of "Math Class Constants ..."), Figure 6.2 (page 235), page 239 (from "Asembling Strings ..." to the bottom of the page), 6.7. Also, check out Sun's Math Class documentation.
Programs to check out: Test.java, Test2.java, MathDemo.java
Reading: D&D 6.1-4
Programs to check out: Sphere.java, WindChill.java
Reading: D&D 6.5, eHandout: Procedure Abstraction, eHandout: How rollDie() Works
Programs to check out: MethodsDemo.java, Weather.java, Weather2.java
Reading: D&D 2.8, 4.1-6, 5.8
Programs to check out: Weather2.java
Power-of-if Links: Stimulus-Response Agents, iRobot's Roomba, DARPA Urban Challenge
Handout: while Programs eHandout: Augmented Assignment Operators [from On to Java]
Reading: D&D 4.7, 8 (up to "Class GradeBook Test", p. 139), 9 (through Common Programming Error 4.7 on p. 146), 10 (through Error-Prevention Tip 4.3 on p. 152), 11, 12
Programs to check out: WhileDemo.java, Thresholds.java, Peculiar.java, Problem7_14.java
Handout: for LOOPS
Reading: D&D 5.1-4; also check out Figures 4.1 through 4.4 for examples of UML flowcharting
Programs to check out: ForDemo.java, ForDemo2.java
Reading: D&D 15.1-3
Reading: D&D 7.1-5
Programs to check out: MaxMinAvg.java, DiceStats.java
Reading: D&D 7.7,9,12
Programs to check out: ArraysDemo.java, Robots.java, TicTacToe.java,
Reading: D&D 14.1-4
Reading: Text File I/O in Java
Programs to check out:
- ReadDataTrial.java (to run, also download MadlibDataTrial.txt)
- ReadData.java (to run, also download MadlibData.txt)
- WriteData.java
- To run any of these, you will also need to download TextFileIO.java
Yet more Programs to check out: PrimeFinder.java, PrimeFinder2.java, GLRatings.java
Finally, here is some extra material (with linked programs) on how to read and write image files in Java: Image File I/O in Java,
Selected exercises from Deitel & Deitel for study
Review Problems Handout from Lecture
Self-Test Questions with Answers for Midterm #1
Reading: Program Development Plan
More Reading: PA#7 PA#7 Option A FAQ PA#7 Option B FAQ
Handout: Iterated Development Examples
Programs to check out: OddsEvens.java, HeavyUsers.java, Guess3.java, DukeDoubler.java (output: dukedoubled.jpg)
Selected String Methods eHandout (print and bring to lecture)
Reading: D&D 29.2-3, Java's Class String
Programs to check out: Palindromes.java
Reading: D&D 3.1-4, Sun's documentation: What Is an Object?, What Is a Class?
Programs to check out: Circle.java, CircleTest.java, Robot.java, RoboWorld.java
Reading: D&D 3.5-8
An example class problem and its UML diagram
Reading: D&D 8.1-7, 11
Programs to check out: CircleTest2.java, CircleTest3.java, Complex.java, ComplexTest.java, IntegerSet.java, IntegerSetTest.java
Reading: D&D 8.8; 9.1, 9.2, 9.4.1-3, 9.5; 11.1
Programs to check out: Parent.java, Movie.java, PayMovie.java, PG13Movie.java
Java Reference Sheet eHandout (print and bring to lecture)
Review Problems eHandout (print and bring to lecture)
Pop Quiz #5 (print out, complete, and turn in at the BEGINNING of lecture, Thursday 16 NOV; quizzes turned in on other paper or after we begin our review will not be graded)
*** Next week's schedule is atypical; check it out below ***
Reading: D&D 11.1-3; look at and run example programs throughout
Programs to check out: code/guis
eHandout: Swing GUI components
Reading: D&D 20.1-8; Handout: HTML & Applets
Programs to check out: code/applets
Pop Quiz #6 (print out, complete, and turn in at lecture, Thursday 30 NOV)
Awards for Best of "Programming Assignment #7"
PA#12 Preview; "Solutions": MSB Kyle Dave R. Roman Dave A. Alex BarbaraJoy
Java vs. Other Popular Programming Languages
For Recap, we will go over the Final Exam Information Sheet below
Review Problems eHandout (print and bring to lecture)
Information Sheet
Study Materials:
Java Reference Sheet Review Problems Handout from Lecture #15
Sample Exam Problems from Spring 2006 and Solutions
Selected exercises from Deitel & Deitel for study
Self-Test Questions with Answers
Some extra programs to check out: SimpleIO.java, SimpleMethods.java, SimpleFlow.java
Solution
Post-Mortem
Information Sheet
Study Materials:
Java Reference Sheet Review Problems eHandout from Lecture #23
Sample Exam A from Spring 2006 and Solutions
Sample Exam B from Spring 2006 and Solutions
(Also see: Sample Final Exam A&B, Question 2 for 2-D arrays.)
Selected exercises from Deitel & Deitel for study
Self-Test Questions with Answers
More Review Questions with Answers by Chapter (in left panel)
Some extra programs to check out: ClassInstanceExample.java, GetAndSetExample.java
Solution
Post-Mortem
Note: our final will be longer than each midterm and comprehensive (unlike the Sample Exams provided below)
Information Sheet
Study Materials:
All the materials for Midterm Exam #1 above
All the materials for Midterm Exam #2 above
Java Reference Sheet
Sample Exam A from Spring 2006 and Solutions
Sample Exam B from Spring 2006 and Solutions
Selected exercises from Deitel & Deitel for study
Self-Test Questions with Answers
Review Problems eHandout (print and bring to lecture)
Post-Mortem