|
This page documents what we do in class. It contains Java programs that we will discuss in class, simple homework exercises that you can work on for practice and exam preparation (not for credit), and reading assignments from our textbook.
The reading assignments and practice problems are listed by the date on which they were assigned. The sample program files are listed by the date on which they were used. You can click on either a .java link and see the source code, or click on a .html link (when available) and see an applet running. When you are viewing the source code, you can use your browser's "File -> Save As..." menu item to save a copy of the file on your computer. It is a good idea for you to "play" with these example programs; compile them, run them, make simple changes to them and compile and run them again.
|
- Wednesday, December 5.
- For Chapter 12.
- Remember: The final exam is Wednesday, December 12 at 1:00 in the room that we regularly meet in (notice that the time is an hour earlier than when we usually meet). The final will cover Chapters 2, 3, 4, 5, 7, 8.1, 9, 10, and 11. To study for the final, look over the previous two exams and also work on the Exercises assigned on this page from the end of every chapter. Also, remember that the last programming assignment, Assignment 10, is due Monday, December 10.
- Monday, Decmber 3.
- For Chapter 11.
- The following six files give an example of using both inheritance for specialization and inheritance for implementation. The HatItem and GloveItem classes extend the OrderItem class and they provide two different kinds of items that can be ordered. The HatItemA and HatItemB classes provide two different implementations of the interface defined by the HatItem class, and GloveItemA provides an implementation of the interface defined by GloveItem.
- The following three files give examples of polymorphism.
- Shape.java
- Circle.java
- Rectangle.java
- NervousShapes.java
- For our next class, please read sections 12.1, 12.2, 12.3, 12.4, and 12.5 from Chapter 12. Also, Section 11.8 is a good introduction to Chapter 12.
.
- Wednesday, November 28.
- Monday, November 26.
- For Chapter 11.
- For our next class, please read sections 11.5, 11.6, 11.7, 11.8, and 11.9 from Chapter 11.
- Do the following Exercises at the end of Chapter 11: 8, 9, 10, 11.
- The next two files give two different solutions of programming assignment 8.
- Wednesday, November 21.
- For Chapter 10.
- For our next class, please read sections 11.1, 11.2, 11.3, and 11.4 from Chapter 11.
- Do the following Exercises at the end of Chapter 11: 1, 3, 5.
- Monday, November 19.
- For Chapter 10.
- For our next class, please read sections 10.5, 10.6, 10.7, 10.8, and 10.9 from Chapter 10.
- Do the following Exercises at the end of Chapter 10: 5, 7.
- Wednesday, November 7.
- From Chapter 9.
- For our next class, please read sections 10.1, 10.2, 10.3, and 10.4 from Chapter 10.
- Do the following Exercises at the end of Chapter 10: 2, 3, 4.
- Remember that the second exam is on Wednesday, November 14, one week from today. The exam is over Chapters 5 through 8 of our textbook and it is based on the end of chapter exercises that were assigned with the readings on this page. On Monday, November 12, we will go over any questions that you may have about any of these assigned exercises. We will spend as much time Monday as is needed to answer questions. So please start preparing for the exam and come Monday ready to ask questions.
- Monday, November 5.
Wednesday, October 31.
- For Chapter 8.
- For our next class, please read Sections 9.1, 9.2, 9.3, 9.5, and 9.6 from Chapter 9.
- Do the following Exercises at the end of Chapter 9: 2, 4, 5, 6, 7, 11, 12, 13, 14, 16, 17.
- NOTE: The second exam has been rescheduled for Wednesday, November 14.
Monday, October 29.
- From Chapter 7.
- For our next class, please read Sections 8.1, 8.3, 8.5, 8.6, and 8.7 from Chapter 8.
- Do the following Exercises at the end of Chapter 8: 1, 2, 3, 9, 10, 11, 12, 16.
- Be sure to check the programming assignments page for Assignment 8.
Wednesday, October 24.
Monday, October 22.
- From Chapter 7.
- For our next class, please read Sections 7.5, 7.6, 7.7, and 7.8 from Chapter 7.
- Do the following Exercises at the end of Chapter 7: 13, 16, 21, 22, 23.
- Be sure to check the programming assignments page for Assignment 7.
Wednesday, October 17.
- From Chapter 6.
- Here are two examples, not from the book, of how we can do animations. The first example is very simple and uses mostly just ideas from Chapter 6. The second example is much more sophisticated.
- For our next class, please read Sections 7.1, 7.2, 7.3, and 7.4 from Chapter 7.
- Do the following Exercises at the end of Chapter 7: 1, 2, 3, 4, 8, 10, 11.
Monday, October 15.
- From Chapter 6.
- For our next class, please read Sections 6.4, 6.5, and 6.6 from Chapter 6.
- Do the following Exercises at the end of Chapter 6: 1, 2, 3, 4, 5, 6, 7.
- Be sure to check the programming assignments page for Assignment 6.
Wednesday, October 10.
- From Chapter 5.
- For our next class, please read Sections 6.1, 6.2, and 6.3 from Chapter 6.
Monday, October 8.
- From Chapter 5.
- For our next class, please read Sections 5.3, 5.4, 5.6, 5.7, and 5.8 from Chapter 5.
- Do the following Exercises at the end of Chapter 5: 1, 5, 6, 7, 8, 9, 10, 12.
- Be sure to check the programming assignments page for Assignment 5.
Monday, October 1.
- In class today we will go over any questions there are about the homework problems that were assigned from the end of each of chapters 1 through 4. We will also finish going over Chapter 4 and, if there is time, begin Chapter 5.
Wednesday, September 26.
- From Chapter 4.
- For our next class, please read sections 4.8, 4.9, and 4.10 from Chapter 4 and also Sections 5.1 and 5.2 from Chapter 5.
- Do the following Exercises at the end of Chapter 4: 1, 4, 5, 6, 7, 10, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22.
- Remember that the first exam is on Wednesday, October 3, one week from today. The exam is over Chapters 1 through 4 of our textbook and it is based on the end of chapter exercises that were assigned with the readings on this page. On Monday, October 1, we will go over any questions that you may have about any of these assigned exercises. We will spend as much time Monday as is needed to answer questions. So please start preparing for the exam and come Monday ready to ask questions.
Monday, September 24.
- From Chapter 4.
- For our next class, please read sections 4.5, 4.6, and 4.7 from Chapter 4.
Wednesday, September 19.
- From Chapter 3.
- For our next class, please read sections 4.1 through 4.4 from Chapter 4.
- Be sure to check the programming assignments page for Assignment 4.
Monday, September 17.
Wednesday, September 12.
- From Chapter 3.
- For our next class, please read sections 3.6 through 3.10 from Chapter 3.
- Do the following Exercises at the end of Chapter 3: 7, 8, 9, 11, 12.
- Be sure to check the programming assignments page for Assignment 3.
Monday, September 10.
- From Chapter 2.
- For our next class, please read sections 3.1 through 3.5 from Chapter 3.
- Do the following Exercises at the end of Chapter 3: 1, 2, 3, 4, 6.
- Be sure to check the programming assignments page for Assignment 2.
Wednesday, September 5.
- From Chapter 2.
- For our next class, read sections 2.10, 2.11, and 2.12 from Chapter 2.
- Do the following Exercises at the end of Chapter 2: 2, 3, 4, 5, 6, 7, 9, 10, 11.
- Be sure to check the programming assignments page for Assignment 2.
Wednesday, August 29.
- From Chapter 2.
- Read sections 2.4 through 2.9 (pages 39-57) from Chapter 2.
Monday, August 27.
- Read Chapter 1 and Sections 2.1, 2.2, 2.3, and 2.10 (pages 58-60 only) from Chapter 2.
- Do the following Exercises at the end of Chapter 1: 3, 4, 8, 10.
|
|
|
|