Lab 00

This lab is designed to do a couple of things. First, it seeks to make sure you know how to turn in your future assignments/labs (and generally get around in a console-based environment), Second, it makes sure you can write a really simple java program and understand one way to work input into your program -- via command line arguments. Lastly, it seeks to get you to explore the Java API.

What to do:

  1. After reading "Navigating the Java API", type your answers to the questions posed in this section in a text editor on your computer.

  2. Use whatever SFTP client you have installed (e.g., Fetch, WinSCP, etc.) to upload the text file containing your answers to the home directory for your account on the mathcenter.oxford.emory.edu server.

  3. With whatever SSH client you have installed (e.g., PuTTy on Windows, or ssh via the Terminal application in OS X, etc.), connect to mathcenter.oxford.emory.edu and create inside your home directory a directory called "cs170_fall_2017_lab00". Then move your answers -- which should be initially in your home directory -- to the cs170_fall_2017_lab00 directory. (Yes, this can be done more efficiently if you let your SFTP client create the folder for you, but this way you get practice using text commands on the command-line.)

  4. Rename, as necessary, your uploaded file so that it is named "answers_to_api_questions.txt". (Again, it is more efficient if you give your file the right name at the beginning -- but try giving it the wrong name and "fixing it" from the command line. This is good practice for later, when you accidentally upload something improperly named.)

  5. Using a text editor on the server (i.e., nano or vim), create a file named Parrot.java as described in problem 3 here, saving it to your cs170_fall_2017_lab00 directory. Compile this file on the server and then run the resulting class file to make sure it works appropriately.

  6. Write, using Eclipse, a file named ProductFinder.java as described in problem 5 here. Run this program via Eclipse on your local machine to make sure it works appropriately. Then upload the SOURCE CODE ONLY (i.e., the file that ends in ".java") to the server in your cs170_fall_2017_lab00 directory.

  7. Upload a JPEG picture of yourself named "my_pic.jpg" to this cs170_fall_2017_lab00 directory, along with another text file called "my_bio.txt" describing yourself, your interests, nicknames, why you are taking this class, etc. (so that I can get to know you all a bit better) :o)

  8. Finally, on the command line from your home directory type the following and hit return, to turn in all your work for this lab:

    java -cp /assignments TurnIn cs170_fall_2017_lab00
    
    Note, there should not be a slash at the very end (beware, the computer may try to add one for you, depending on whether or not auto-complete is used).

THE FOLLOWING IS VERY IMPORTANT: WHEN CREATING ANY FILES OR FOLDERS, OR WHEN UPLOADING ANY FILES AND FOLDERS -- USE EXACTLY THE NAMES SPECIFIED IN THE DIRECTIONS -- EVEN DOWN TO THE CAPITALIZATION OF THE LETTERS. IF YOU DON'T, YOUR PROGRAMS WILL NOT BE ABLE TO BE TURNED IN CORRECTLY.