CS 1410 - Introduction to Object-Oriented Programming
Fall 2011

Written homework #1

Due in lab on Friday, August 24

Name:                                                                          Your student ID:

This area for TA use only:
Lab completed:         / 10 pts TA mark:                Questions:         / 10 pts
 

Write your name and student ID number above.  Complete the following questions prior to your first lab.  Bring this completed sheet to your lab.

  1. (2 points) Go to the CADE lab in WEB L 226 during business hours.  If you do not have a CADE lab account, ask the help desk for an account.  Using your account information, log into one of the CADE lab machines in WEB L 226.  Complete any required steps to log in.  (You may be given an opportunity to change your password and/or set up your ID card to open the door locks.  Follow the on-screen instructions.)

    Once you are logged in, click on the 'terminal' window (where you can type commands).  If for any reason you accidentally close the terminal window, you can open a new one by selecting "Applications->CADE->Terminal".

    Type the following command into the terminal and write down the response below:

    /usr/bin/whoami
    

     

                                                    

  2. (6 points) In computer science, independence is an essential skill for learning.  There is a lot of technical information and you cannot hope to memorize it all.  You need to be good at using the web as a resource for technical details.  For this step, you will independently find information that will help you use Linux and Emacs.  (It is important to find useful information, not just any information.)

    Open a web browser.  You can type 'firefox &' in the terminal (without the quotes), or you can start a browser from the menus at the top of the screen.  Go to your favorite search site.

    Search for and locate two reference cards on the web to help you keep track of Linux and Emacs commands.  I recommend searching on terms like Linux, Emacs, reference, command, card, beginner, tutorial, etc.  Once you find references you like, bookmark them and write the web address for your references below:

     

    I like the following Linux command reference:                                                                                                  

     

    I like the following Emacs command reference:                                                                                                  

    Note:  There are thousands of these references.  Some are better for beginners than others - choose well.  Also, if you are dissatisfied with your reference, choose another.  We will talk about commands in lab and class, but we won't spend a lot of time on them.  You'll need a good reference.

    Finally, feel free to print your reference cards (if they are short).  You have a limited print quota, so don't print manuals.

  3. (2 points) Feel free to explore your account a little bit.  When you are done, make sure to log out!  Do not power down the machine - log out only.  (You never want to leave your account accessible to other students!) 

    How do you log out of the CADE lab computers?  Write the procedure below: