Java, Getting Started: Imperative and Logical
Java, Getting Started: Imperative and Logical
Preparation is REQUIRED
In this course, students need to become familiar with the material before coming to class. Course material
will be available online each week. Assignments will depend on it. In class, students should be ready to ask
questions, and to do exercises.
REMINDER - To get full benefit from the online learning materials, students may want to use a
Windows computer. The school computers, such as the Open Lab on floor 2 of the Tech Center,
can be used.
III. View the indicated learning materials and answer the questions below.
I. Week 1 Learning Materials: Java 1 – Week 1 – Part 1 and Week 1 – Part 2 .
1. Name any two of the different approaches to programming: Imperative and Logical
3. Option: What is the purpose of a main method? It is the program execution start point.
2. What is the case (upper or lower) of the first letter of a method or variable: ________upper_________ 3.
How many classes are in the figures project? __________________________________________ 4. How can
you see the methods in any object on the object bench? ________________5_________
5. What happened when you hit the color (memory location) box on the slide? It opens a new windowsSee
page 2 🡪
01/25/21
CSP 127 Computer Programming I Name Computer Programming I/Java<2> Assignment 1: Java, Getting
Started
III. Recommended: Also complete this learning material: Java 1 – Week 2 – Part 2
Give an example (not mentioned in our course) of a class and an object of that class as follows:
1. Class:
Name a class for an existing object. Car
a. Tell 3 of its fields, i.e., features that describe it: tyers, doors and windows.
b. Tell at least 2 of its methods, i.e., behaviors associated with it.
Its used to transport goods and its used to commute.
2. Object: –
a. Give an example of one specific object that belongs to the class you chose above: toyota
b. Describe its “state”. To do this, indicate the values of each field you chose above. Tyers are
used to roll the car
Door are a way of entrance to the car.
Windows are to ventilate the car
V. Submit Greeting.java (This is the class created from the week 1 learning materials.
To do this:
1. Open the Greeting project in BlueJ.
2. Create an object.
3. Run the printGreeting() method.
4. Take a screen capture or snapshot of the terminal. Attach it to your assignment.
01/25/21