CSCI 201 Homework Assignment 4

Written Assignment

Write solutions to Review Questions 4.1, 4.3, 4.4, 4.5, and 4.8 on page 119 of the textbook.

Due Date

Students in the evening lecture sections should turn in their written homework at class on Monday, 25 September. Students in the day-time lecture sections should turn in their written homework at class on Wednesday, 27 September.

Programming Project

Write a computer program to solve Programming Exercise 4.10 on page 123 of your textbook.

Create a NetBeans project called Homework4 to solve this problem. We suggest you start with the skeleton NetBeans project contained in the Homework 4 ZIP file.

If you prefer starting from scratch, use NetBeans' defaults in creating your project just as was done in the first week's lab. This will result in your code being placed in a class called Main within a package called homework4. Be sure to insert your Java statements within the main method!

Turning in

Your completed program must be stored within a subdirectory csci/201/Homework4 of your Linux home directory. If you create a project named Homework4 at project location csci/201 as was done in the first week's lab this will happen automatically.

If you complete this assignment on your "home" system, you still must create a csci/201/Homework4 directory within your Linux account to store your work. You can copy to that directory either (1) a jar file containing your NetBeans project or (2) the java file for your Main class.

Due date

Programming assignments will be copied from student directories at 9:00 am on Friday, 29 September. It is your responsibility to have your assignment in place at that time.

Late assignments will also be copied at 9:00 am each of the following three days. There is a 10% penalty for each day the assignment is late.