## Notes and Code:

Class Date Topic
Class Programs
Readings
Class Lectures
1 Jan. 20   Intro to class
P1 Jan. 26 Professor Engel's Python to Java session
2 Jan. 25 Programs from chapter 2 slides: ComputeArea.html, DisplayTime.html, FahrenheitToCelsius.html, SalesTax.html, DisplayUnicode.html, ComputeLoan.html, ComputeChange.html, ShowCurrentTime.html, TestScanner.html
Programs from chapter 3 slides: LeapYear.html, LearnAddition.html, ComputeTaxWithSelectionStatement.html, SubtractionTutor.html, GuessBirthDate.html
Programs from chapter 4 slides: SubtractionTutorLoop.html, SentinelValue.html, TestSum.html, TestMultiplicationTable.html, GreatestCommonDivisor.html, FindSalesAmount.html, PrintPyramid.html, TestBreak.html, TestContinue.html, PrimeNumber.html
TestMax.html, TestPassByValue.html, TestMethodOverloading.html, ComputeTaxWithMethod.html, PrintCalendar.html, PrintCalendarSkeleton.html
Also see corresponding notes and lectures for all three chapters from my Spring 2007 0002 class
Liang Chapter 2
Liang Chapter 3
Liang Chapter 4
Liang Chapter 5
3 Jan. 27
4 Feb. 1
5 Feb. 3
6 Feb. 8 cut and paste from slides
DynamicFibonacci.txt
Recursion
7 Feb. 10 Array1.txt, Array2.txt, Array3.txt, Histogram.txt, RollDie.txt, StudentPoll.txt, TestPassArray.txt, MakeHot.txt, MakeArrayInMethod.txt, TestCopyArray1.txt TestCopyArray2.txt, TestCopyArray3.txt Arrays 1 (part covered February 17th)
8 Feb. 17
9 Feb. 22 TestCircle.txt, TestSwitch.txt, TestCircleWithConstructors.txt, TimeTest1.txt Objects & Classes 1
10 Feb. 24 CircleWithAccessors.txt, TestCircleWithAccessors.txt, CircleWithStaticVariable.txt, TestCircleWithStaticVariable.txt, TestDate.txt Objects & Classes 2
11 Mar. 1 ScannerTest1.txt, ScannerTest2.txt
TestSmallInt.txt
Scanner Class
12 Mar. 3 ThisTest.txt, Time2.txt, TimeTest2.txt, Date.txt, Employee.txt, EmployeeTest.txt, TestPassingObject.txt Objects & Classes 3
discussion of binary, hexadecimal
13 Mar. 8 TestCalculate1.txt, TestCalculate2.txt, TestLongestBlankInString.txt, TestPlayer.txt, TestReverseString.txt, HourlyEmployee.txt, TestHourlyEmployee.txt, TimeTest3.txt, TestRectangle.txt Rectangle.txt
14 Mar. 10 MIDTERM
Spring Break
15 Mar. 22 TicTacToe.txt, TestLength.txt, TestMatrixOperation.txt, GradeExam.txt
Concert.txt, TestConcert.txt, countOccurences.txt
Arrays 2
16 Mar. 24 TotalArea.txt
GeometricObject.txt, Circle.txt, Rectangle.txt, TestCircleRectangle.txt
Cylinder.txt, TestCircleCylinderRectangle.txt
GameOfLife.txt
Arrays of Objects
Inheritance (part covered 3-29)
17 Mar. 29 modifications to programs from previous classes were made in class
Fifteen1.txt, Fifteen2.txt, Fifteen3.txt
Inheritance, Object class, Intro to Polymorphism (also arrays of objects review)
18 Mar. 31
19 Apr. 5 Same class hierarchy with equals() methods and test instanceof operator
GeometricObject.txt, Circle.txt, Rectangle.txt, Cylinder.txt, TestCircleCylinderRectangle.txt
TestCircleCylinderRectangle2.txt (try both GeometricObject files), GeometricObject.txt (with abstract methods)
Employee.txt, SalariedEmployee.txt, HourlyEmployee.txt, CommissionEmployee.txt, BasePlusCommissionEmployee.txt, PayrollSystemTest.txt
casting objects and abstract classes
20 Apr. 7
21 Apr. 12 LinearSearch.txt, BinarySearch.txt, SelectionSort.txt, BubbleSort.txt
TestComparableBinarySearch.txt, TestComparableMax.txt, TestObjectEqualsLinearSearch.txt, Tokenizer1.txt, Tokenizer2.txt, Tokenizer3.txt, TestDatabase.txt
Sort and Search
interfaces
22 Apr. 14
23 Apr. 19 MyFrame.html, MyFrameWithComponents.html, ShowFlowLayout.html, ShowGridLayout.html, ShowBorderLayout.html, TestPanels.html, TestSwingCommonFeatures.html, TestImageIcon.html Liang chapter 13 GUIBasics
24 Apr. 21 TestGetGraphics.html, TestPaintComponent.html, TestPanelDrawing.html, FigurePanel.html, TestFigurePanel.html, DrawArcs.html, DrawPolygon.html, TestCenterMessage.html, MessagePanel.html, TestMessagePanel.html, StillClock.html, DisplayClock.html, DisplayImage.html, SixFlags.html, ImageViewer.html Liang chapter 14 Graphics
25 Apr. 26 HandleEvent.html, SimpleEventDemo.html, ShowInnerClass.html, SimpleEventDemoInnerClass.html, AnonymousListenerDemo.html, ControlBall.html, TestWindowEvent.html, TestMultipleListener.html, AdapterDemo.html, MoveMessageDemo.html, KeyEventDemo.html, AnimationDemo.html, ClockAnimation.html Liang chapter 15 EventDrivenProgramming
26 Apr. 28 Chapter 16:
images directory, TestButtonIcons.html, ButtonDemo.html, CheckBoxDemo.html, RadioButtonDemo.html, TextFieldDemo.html, DescriptionPanel.html, TextAreaDemo.html, ComboBoxDemo.html, ListDemo.html, ScrollBarDemo.html, SliderDemo.html, MultipleWindowsDemo.html, Histogram.html, ButtonColors.txt, TestButtons2.txt
Review:
String.txt (from the Java API), MyString.txt, TestMyString.txt Cipher.txt, TestMagicSquare.txt, Minesweep.txt
Liang chapter 16 CreatingUserInterface
27 May 3 (solution using only stuff from this class - still not modular) Person.txt, Employee.txt, Student.txt, Staff.txt, Faculty.txt, TestPerson.txt
(solution using some concepts we have not covered but can understand - this is more modular - can still be improved) Person.txt, Employee.txt, Student.txt, Staff.txt, Faculty.txt, TestPerson.txt
Building.txt, AcademicBuilding.txt, ResidentialBuilding.txt, EmployeeHousing.txt, Dormitory.txt
Final Exam