CSC 160 Fall 2009 - Homework 8
Assigned Th 11/19, due MON 11/30
Read Chapter 8 (up to the end of Section 8.3-page 285) of the
textbook. (E-mail me any questions you may have.)
Do not start the exercises below until you have
fully read and understood all of Chapter 8 (up to page 285) in the
textbook. E-mail the
instructor any questions you have or things you find unclear in the
reading assignment.
Part One: Codelab (5 points each x
8 exercises = 40 points total)
Do the exercises in the HW8 section
of Codelab:
Declarations - 20524
Initialization - 20513
Constants - 20522
Integer Operations - 20533
Relational Operators - 20552
Output and Input - 20507, 20606
Assignment Operators - 20594
Part Two: BlueJ (30 points each x
2 exercises = 60 points total)
Exercise 8.0: Write a Java program that asks the user to type a
word, reads the
word, and then displays You just typed YourWord, where
yourWord is replaced by the word you typed. (Be sure to test the
program at least 3 times using different words each time.)
Do exercise 8.2 on page 290 of the textbook.
Extra Credit: Do exercise 8.5 on page 291 of the
textbook (20 points).
For full credit, use must use correct filenames and include
name/date and program description at the top of each Java class.
Submitting the BlueJ part of your Assignment
You must submit one file for each exercise through Moodle. Either, zip up the
folder for the project and submit a .zip file.
Or, submit the .java file from the folder for each project.
For full credit, the project name for Exercise 8.0 must be named
"hw8[LastName]8.0" where [LastName] is replaced with your last
name.
(For example, if I were submitting this
assignment, I would name the file
"hw8Wittenstein8.0")
The filenames for the other exercises should have the same name
except that the 8.0 is changed to the correct exercise number.
Last Modified: 11/24/09