Updated: August 31, 2005

AP - Computer Science Chapter 1 - BlueJ

Complete the following exercises. Send all answers to me via email . Use complete sentences and proper grammar/spelling in your answers. Where needed insert an image into your document. The subject of the email should be apcs BlueJ Ch1. Be sure to keep a copy in your FirstClass account.

Note: This assignment is modified from Todd O'Bryan and Mr. Motenko's work.

Read Chapter 1, pp. 3-16.

  1. What is the difference between a class and an instance of a class? How does BlueJ represent this difference? How do Java naming conventions represent this difference? Do Exercise 1.1.
  2. Work through section 1.3. (You may have to hunt for the window containing your circle when you first use makeVisible().) Answer the questions in Exercise 1.2.
  3. Do Exercise 1.3. What do you type in moveHorizontal to move the circle 70 pixels to the left?
  4. Do Exercises 1.4, 1.5, and 1.6. Answer the questions for 1.5 and 1.6.
  5. Do Exercises 1.7 and 1.8. How many pixels do the move methods move the objects?
  6. Do Exercise 1.9 and write down what you had to do to create the picture.
  7. Do Exercise 1.10 and answer the question posed by Exercise 1.11.
  8. Do Exercise 1.12. Who are the authors of the file, and what date did they write it?
  9. While you have the source code for the Picture class displayed, choose Options->Preferences... and then make sure "Display Line Numbers" is checked. Do Exercise 1.13. What line did you have to change, and what did you change it to?
  10. Do Exercises 1.15.
  11. Do Exercises 1.17 and 1.18. Answer the question from Exercise 1.18.
  12. Do Exercises 1.19 and 1.20. What does numberOfStudents() return?
  13. Do Exercise 1.21. Enroll at least three Student objects. Feel free to be creative. Do Exercise 1.24 and 1.25 and copy the results of printList() into your homework

Complete Exercises 1.28-1.32.

 

Grading Rubric