Scott Grissom
School of Computing & Info Systems
Grand Valley State University
picture

Lab: Getting Started

Preparation

Do the following before arriving at lab:

  • Read chapter 1.1 - 1.8
  • Know your GVSU login name and password
  • Bring your textbook to lab

Objectives

After completing this lab, you should be able to:

  • start BlueJ and access the example programs
  • create an instance of an object
  • invoke object methods
  • inspect the state of an object

Exercises

Read Chapter 1 and perform each of the following exercises. Write your responses to any questions on this paper.

  1. Copy the BlueJ Projects folder to your N: drive. Note: this folder is available on the book CD and can also be downloaded from the book website.
  2. 1. Log on to the campus network.
    2. Open the Departmental Apps--> CSIS Folder.
    3. Double click on the R: Data icon. This connects you to the R: drive that holds the sample code.

    4. Use Windows Explorer to copy the directoryBlueJ Projects from the CS162 directory onto your N: drive
    5. Close the R: drive window to get it out of the way

  3. Start BlueJ 2.2.1. BlueJ is located in the Departmental Applications --> CSIS folder.
  4. Open the project named Chapter01-->Shapes.
  5. Exercise 1.1
  6. Exercise 1.2 - Write your answers to the questions
  7. Exercise 1.3
  8. Exercise 1.4
  9. Exercise 1.5 - Try "pink". What happened?
  10. Exercise 1.6 - Try red without the quotes. What happened?
  11. Exercise 1.7
  12. Exercise 1.8
  13. Exercise 1.9 - Spend enough time to create an interesting picture. Show your picture to your instructor. For example, a picture of different colored balloons tied together with strings. Or a bullseye target with black and white rings and a red center. Or a yellow smiley face.
Already done?

Continue with the following exercises

  1. Create an even better picture and print it. You can send it to your parents to show what you are doing in college!

Grading Criteria

This lab is worth a possible 10 points.

  • Turn in this printed page with your hand written answers (5 pts).
  • Show your instructor your completed picture (5 pts)