Programming Assignments for CS 12300

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 instructions on 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 3.
Do Programming Project 4 on page 172 at the end of Chapter 3 of the textbook. This assignment is due on Monday, September 27.

Assignment 2.
Do Programming Project 8 on page 117 at the end of Chapter 2 of the textbook. When you write your program, be sure that the output of your program does not include any leading spaces. So for example, if the input to your program is the following line of text
This    line is spaced    funny
then the output of your program should be
Line is spaced    funny This
and not this
    line is spaced    funny This
For this assignment you will need to be familiar with Java's String class, which is described in Section 2.2. In particular, be sure to look carefully at Figure 2.5 (page 78) which lists methods from the String class that you can use for this assignment. This assignment is due on Wednesday, September 15.

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 8.


Return to the CS 12300 home page.


compliments and criticisms