LAB 4 - STRING TOKENIZER & POLYGON - Introducing Arrays


You can download the problems for this lab using the method given below or just get them here: StringOps.java and Polygon.java .


(NOTE: in case you face any problems downloading the Lab problems and uploading them back, just show your code to the TAs/Tutor and get it graded. You are being asked to use the "receive.pl" and "submit.pl" scripts so that we test the scripts thoroughly as we will be using them for your Lab exams.)


This lab has two parts. Hence there are two (.java) files. These are "StringOps.java" and "Polygon.java". Download the files and go through them. These are self explanatory and tell what is to be implemented. Do the required exercise on them and upload them back (or just show them to your TAs/Tutor in case you fail to upload). Follow these steps:

INSTRUCTIONS FOR DOWNLOADING & SUBMITTING THE PROBLEM.

  1. Run the "receive script" by typing:
    ~kayaln/esc101/client/receive.pl

  2. Enter your username and password.

  3. If your username and password are correct, it downloads the files "StringOps.java" and "Polygon.java".

  4. Now you have the files in your home area. Implement the methods which you are supposed to implement (Without modifying any other methods....!).

  5. When you are done with the coding and when you feel its time to submit your work and have a look at your marks, do the following:
    ~kayaln/esc101/client/submit.pl

  6. Enter the username / password and type the "PROBLEM id:" to submit your work. NOTE that the downloaded file(s) ("StringOps.java and "Polygon.java" in this case) contain(s) the "PROBLEM id:" which you need to remember to submit your work.

  7. At last the interesting part, the "Score" appears on the screen some time after you submit your work and some testing is done on your code. Please note that it may take a few minutes for the program to be compiled and tested. Please have patience. The score will eventually appear on the screen.

ALL THE BEST!