CS 102 Lab 2: Variables, Expressions,
Assignment, Input and Output
- Date: Wednesday, January 20th, 2010
- Location: SEL 2254
- Instructor: Rigel Gjomemo
Synopsis:
- What you
should know to complete this lab:
- How to use Eclipse.
- How
to declare variables, get input from user, produce output.
-
Submitting your files using turnin command.
- Have the weekly quiz (~5 mins - No books or web open).
- Complete the lab assignment. (~35 mins)
- Turn in your work.(~5 mins)
- Finish early, leave early.
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.
- Using “ls”
command to see what directories and files under current directory.
-
Make
sure your working directory contains what you want to submit. Use
“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
- In your command window, type the
following and press ENTER:
turnin -c cs102 -p lab2 NameOfYourFile.java
- To check that your program really was
successfully turned in, type the following and press ENTER:
turnin -c cs102 -p lab2 -v