Lab Assignment #1 (Revisions shown in red)

Due: Wed, Jan 12th, 11:59pm.

Two deliverables are due:

1. the file
Lab6.java, which you will develop while undertaking the lab exercises L6.1 and L6.2 on pp 247-249.
2. the file
Check06D.java, which you will develop while undertaking the "eCheck" exercise Check06D on pp 257-258. For additional info on command-line arguments, please see section 6.4.3.


Learning Objectives (Why am I doing this lab assignment?):
- be able to perform basic navigation of the file system in a linux terminal window; be able to use the "submit" command (Lab6.java)
- understand that Strings are not mutable (Lab6.java)
- be able to make use of the split, length, substring, indexOf, compareTo methods in the String class (Lab6.java, Check06D.java)
- be able to construct a basic iterative structure (aka for-loop)
- be able to pass command-line arguments to an app (Check06D.java)
- be able to use the "Options" application to specify your credentials (login & password) and to specify this course's eCheck server
- be able to use the "eCheck" application to check and submit your Check06D.java app (either on the command-line or within Eclipse)

To Begin
Create a new project in eclipse called 1720.
Follow the instructions here:
http://www.cse.yorku.ca/course_archive/2010-11/F/1710/Labs/L1/
In the project, create two classes, one called
Lab6 and the other called Check06D



To Submit
To submit the Lab6.java file, follow these instructions:
This lab is to be handed in via the "submit" command which is a command-line application that is invoked from any terminal window.
1.    Use PuTTY to log in to red.cse.yorku.ca.
a.    PuTTY can be found under Start -> Programs -> PuTTY -> PuTTY.
b.    Type red.cse.yorku.ca under "Host Name (or IP address)".
c.    Click on the "Open" button.
d.    Click "Yes" on the "Security Alert" that appears the first time you connect to red.
e.    Use the same username/password that you used to log in to the computer.
2.    Once PuTTY establishes the ssh connection, you will see a terminal running the Linux environment.
a.    use the linux commands to navigate to wherever your Lab6.java code is
b.    A primer on basic linux commands can be found here
eg., type pwd upon login and you will see /cs/course/cseXXXXX - this is your home directory, which is mounted as the Z: drive in Windows. You can cd into workspace-win32 and then cd into the directory 1720. Type ls and you will see all of the files within the 1720 project that you created in Eclipse.

   3. Issue the command
    submit 1720 lt1 Lab6.java
In order to have a look at what you have submitted, issue the command (note that -l is lower-case L, not the digit "one" aka 1 )
     submit -l 1720 lt1


To submit the Check06D.java file, ...You will need to use the "Options" and "Check" applications.

You have a choice:
(1) run them within Eclipse (as we did last term in 1710) - see Parts Two-Four at
http://www.cse.yorku.ca/course_archive/2010-11/F/1710/Labs/L1/
(2) on the command line - for this
follow the instructions that are outlined in L1.2-L1.3 (pp. 36--40).
On the command line, you will need to modify the file names in the instructions.
E.g.,
java Check 06D

The name of the eCheck server for this course is:
http://www.cse.yorku.ca/~roumani/type/ec/ec1720.cgi