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.
- 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.
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
- Start BlueJ 2.2.1. BlueJ is located
in the Departmental Applications --> CSIS folder.
- Open the project named Chapter01-->Shapes.
- Exercise 1.1
- Exercise 1.2 - Write your answers to the questions
- Exercise 1.3
- Exercise 1.4
- Exercise 1.5 - Try "pink". What happened?
- Exercise 1.6 - Try red without the quotes. What happened?
- Exercise 1.7
- Exercise 1.8
- 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
- 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)
|