Site Navigation

Site Search

CS 110: Lab Orientation main content

Learning Objectives

After completion of this lab, you should be able to

Recognize and be able to contact your teaching assistants (TAs)

In labs, you will be assisted by computer science majors working as teaching assistants. Get to know your teaching assistants and write down their contact information and available on-duty hours.

Your teaching assistants have been asked to provide a few words of wisdom for succeeding in the course and major at this time.

Login to the cs2k3 network and change your password

  1. Obtain a cs110 username and password from your teaching assistant

  2. Login with this username/password and change your password
    • Use Ctrl-Alt-Delete to bring up the Windows log in box
    • The first Windows login screen is the University's Novell login. You may wish to skip the Novell login by clicking "Computer Only Login".

  3. On this initial login, the system will force you to change your password to something you can remember
    • You must use a lower-case letter, upper-case letter, and digit or punctuation symbol in your new password

Note: If you receive a message saying you do not have permission to change your password, you will need to restart the computer and log in again. This is a known bug.

To restart the computer, use the Windows Start Menu >> Turn off computer >> Restart
(or use Ctrl-Alt-Delete >> Shutdown >> Restart)

Set up subfolders to contain your CS 110 assignments

file structure file structure Exams file structure Labs file structure Programs

All of your solutions need to be stored on your U:\ drive (the CS network user drive)

To help with grading, you will need to save your lab and programming assignments in a consistent folder and naming scheme.

  1. Set up a hierarchal folder structure to store your CS 110 work on the U:\ drive
    • Create three subfolders: U:\exams, U:\labs and U:\programs
    • Inside U:\exams subfolder, create three subfolders exam1, exam2, and finalexam
    • Inside U:\labs subfolder, create subfolders lab0, lab1, ... , lab13
    • Inside U:\programs subfolder, create subfolders program1, program2, ... , program7

  2. Note: If you intend to use this account for other school related work, set up the subfolder U:\other to contain other work

Create, compile, and run a Java program using jGRASP

jGRASP desktop icon

  1. Start up the jGRASP program by clicking its desktop icon or using the Start Menu

Tip: To help learn the meaning of the toolbar icons, from jGRASP's View menu, select Toolbar buttons >> both to view both the icon and text for each button

  1. In jGRASP's left browse pane, change the current directory to U:\labs\lab0
    By doing this now, when you save your work later, it will be saved in the current directory U:\labs\lab0

  2. From jGRASP's File Menu, select New >> Java

  3. Copy and paste the Java code below into jGRASP's edit window
// My first program
public class HelloWorld
   public static void main (String[ ] args)
      String message = "Hello World" ;
      System.out.println( message ) ;

save icon
compile icon
run icon

  1. Save the file as in folder U:\labs\lab0

  2. Compile the program by clicking the compile button (the green plus icon) in the toolbar
    FYI: Your program gets saved automatically every time you compile it

  3. Run the program by clicking the red running person icon in the toolbar
    Output appears at the lower message pane of the jGRASP desktop.

output screen

To Receive Credit

Because of late adders to the course, network problems, etc., lab0 will not be factored into your course grade.

Use the time remaining in the lab period to familiarize yourself with jGrasp and/or the CS 110 website.