CS 160, Spring 2014
Programming Assignment P1
Let's Get Started!

Programming due Monday, Jan. 27 at noon; late deadline Jan. 27 at 10 p.m.


This assignment has four objectives:
  1. to write a Java program with console output,
  2. to learn how to submit your Java program using Checkin tab on the course web site,
  3. to understand how preliminary testing works, and
  4. to see if you can follow directions!
Write a Java program in a file called P1.java with class name P1, an example of the code structure is shown below. All of the Java code you write should be contained in the main method. For this assignment, you must follow the directions below exactly:

Program Structure

// P1 Assignment
// Author: Chris Wilcox
// Date:   1/15/2014
// Class:  CS160
// Email:  wilcox@cs.colostate.edu

public class P1 {

    public static void main(String[] args) {
        
        // Print statements go here

    }
}

Sample output

Your program should print six lines, and should match the output shown below, except as described here. You must print exactly the string Hello, World! on the first line. Spelling errors, incorrect capitalization, extra or missing white space and any other difference will cause a failure. The second line will have your name instead of mine. The third line will not be checked, but must be present. The fourth line must have exactly the string CS160 Foundations in Programming. The fifth line must have exactly what is shown below. The sixth line must follow the specification given above. See the grading criteria below for additional information.
Hello, World!
Wilcox, Chris
Computer Science
CS160 Foundations in Programming
1/27/2014
I am taking this class because I expect it to be awesome!

Specifications

Your program must meet the following specifications:

Grading Criteria

Submit your program to the Checkin tab on the course website, as you were shown in the recitation, and read the syllabus for the late policy (if necessary).

© 2014 CS160 Colorado State University. All Rights Reserved.