CIS 1068 - Homework 1

Handed out: 01/19/10
Due: by 10pm on 01/25/10

Your program will consist of a single Java file.
The file is Caps.java. It contains a class Caps with three static methods. The first method, lastName, will print out the initial of your last name in capital letters. The second method, firstName, will print out the initial of your first name. The third method is the main method. This method first asks for your name [in my case, Ingargiola], then prints out the greeting "Good day yourname" [in my case, Good day Ingargiola], and then calls the two methods of Caps and then terminates.

Here is how I display the string value "roses are red" on my screen:
System.out.println("roses are red");
And here is how a read a string from my keyboard:
Scanner scan = new Scanner(System.in);
String value = scan.nextLine();

Be sure to document your code. In the file put as documentation, at least, your name, date, course and homework number, statement of problem. In each class and method, put at least the statement of what it does.

Develop your program on Unix or on Windows using the command window.
In either case you will have to enter the commands

    javac Caps.java
    java Caps
The purpose of his homework is to make sure that you have the needed accounts [university account, class Windows account, class Unix account], know how to send email with attachments, know how to edit a program, know how to compile and run a program. Everybody who will be able to submit the program to me (even if it does not compile or run) will get an A.

In general you will Email your programs to the address c10680100@lucas.cis.temple.edu For this particular homework send it to giorgio.ingargiola@temple.edu. Remember, for this homework everybody who submits it (or part thereof) will receive an A!