Programming Assignments for CS 123

The programs that you turn in will be graded according to the criteria given in the first of the following three links. The second link gives detailed instructions on exactly how you are to turn in your finished assignments. The programs that you turn in should conform to the style guide contained in the third link (it was written by Cay Horstmann, a well known Java author).

Program grading criteria
Turning in your assignments
Java Language Coding Guidelines

Below are your Java programming assignments. The due date for each one is contained in the assignment description.

Assignment 9.
The details of this assignment are in this page. This assignment is due on Friday, December 11.

Assignment 8.
The details of this assignment are in this page. This assignment is due on Monday, November 16.

Assignment 7.
The details of this assignment are in this page. This assignment is due on Wednesday, November 4.

Assignment 6.
The details of this assignment are in this page. This assignment is due on Wednesday, October 28.

Assignment 5.
The details of this assignment are in this page. This assignment is due on Wednesday, October 21.

Assignment 4.
The details of this assignment are in this page. This assignment is due on Monday, October 5.

Assignment 3.
The details of this assignment are in this page. This assignment is due on Monday, September 28.

Assignment 2.
Write a Java class (called CS123Hw2Surname) which contains a main() method that uses a turtle to draw a house. (This is a version of Problem 3.19 from page 73 of the textbook.) Assume that your turtle has a drawSquare(int width) method (from page 57 of the textbook) and also a drawRectangle(int width, int height) method (by doing Problem 3.11 from page 73). Your program should make use of these two methods. Your house should contain at least one door and two windows and have a pitched roof. You can draw just the front of the house, you do not need to draw a 3D view of the house. This assignment is due on Wednesday, September 16.

Assignment 1.
Write a Java class (called CS123Hw1Surname) which contains a main() method that prints the following picture.

***************
 *           *
  *         *
   * Hello *
  *         *
 *           *
***************
The output of your program should exactly match this picture. Your program will consist of a sequence of print statements, one for each line of the picture. Don't print any unneeded characters. The main purpose of this assignment is to get you started using the DrJava compiler. This assignment is due on Wednesday, September 9.


Return to the CS 123 home page.


compliments and criticisms