CS 102 Lab 2: Variables, Expressions, Assignment, Input and Output

Synopsis:


Explanation of lab assignments and grading

Lab assignments are always group assignments, and are turned in via "turnin" command.  The grading criteria for lab assignments is:

0 point

Did not turn in or amount of work was insufficient

1 point

Made a reasonable attempt for most of the required exercises.

2 points

Clearly understood and correctly completed most of the required exercises.

3 points

Clearly understood and correctly completed all of the required exercises, and correctly answered all the required questions.

 

1. Quiz:

Click here to read today's quiz. You will have 5 minutes to do the quiz.

The turnin command for this quiz is turnin -c cs102 -p quiz1 textFileName .

2. Lab Assignment:

Click here to read today's lab assignment.

The turnin command for this assignment is turnin -c cs102 -p lab2 YourFileName.java.

You *MUST* turn in the files by the end of the lab session.

3. Submit your file(s) for grading.

Turning in your Java program using the turnin command.

  1. Using “ls” command to see what directories and files under current directory.
  2. Make sure your working directory contains what you want to submitUse “cd DirectoryName” to change current working directory.
    For example, if you previously created a directory called cs102 and have been putting your files there, then before you can successfully execute the turnin command you must first change into the cs102 directory by using the command:
      
    cd cs102
  3. In your command window, type the following and press ENTER:
    turnin -c cs102 -p lab2 NameOfYourFile.java
     
  4. To check that your program really was successfully turned in, type the following and press ENTER:
    turnin -c cs102 -p lab2 -v