0% found this document useful (0 votes)
74 views

Java, Getting Started: Imperative and Logical

This document provides instructions for Assignment 1 in a Java programming course. Students are to: 1) Read course materials and answer review questions. 2) Send a message in Blackboard about the course materials. 3) View additional learning materials and answer related questions. 4) Provide an example of a class and object, describing the class's fields and methods and an object's state. 5) Submit a screenshot showing output from a sample Java program.

Uploaded by

Karl Mark
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Java, Getting Started: Imperative and Logical

This document provides instructions for Assignment 1 in a Java programming course. Students are to: 1) Read course materials and answer review questions. 2) Send a message in Blackboard about the course materials. 3) View additional learning materials and answer related questions. 4) Provide an example of a class and object, describing the class's fields and methods and an object's state. 5) Submit a screenshot showing output from a sample Java program.

Uploaded by

Karl Mark
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

CSP 127 Computer Programming I Name _______________________________________<1> Assignment 1:

Java, Getting Started


Due Date _________________________ Submission Date (if different): ____________________________

I. Read: Objects First with Java: Chapter 1


II. In Blackboard
1. Click the Content link in the left-side navigation (Course Menu). Then:
a. Read the documents in the Course Information and About this Course folders.
b. Move on to the Module 1 folder. Complete and submit the questions in the Review Questions –
About this Course item. Then, download the project files onto both USB drives.
c. Read the Advice from Previous Java I Students page. This is advice by previous students
2. Send a Message: Use Course Messages (see the left-side navigation).
The subject of your message should be: About this Course. Your message should:
a. Indicate that you have read and understand all documents in the About this Course folder in
Blackboard or ask any questions you may have.
b. Tell which piece(s) of advice from the “Advice for Java I Students” you think will be useful to
you.
Note: Most of the information you’ll use in Blackboard is in the Content section.

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

2. Why is Java popular?Java is an object-oriented programming (OOP) language

3. Option: What is the purpose of a main method? It is the program execution start point.

II. Week 2 Learning Materials: Java 1 – Week 2 – Part 1


1. What Java statement (after the comment) starts the code for a class: public class

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

IV. Class and Object:

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.

Note on submitting assignments…


1. Assignments are submitted in Blackboard within the Assignment item.
2. Include your name in the file name for all assignments.
Resubmissions are accepted until the test on that material. Modify the file name to
include your name and “RESUB”

01/25/21

You might also like