CPSC120A
Fundamentals of Computer Science I

Lab 1

Linux and Python

Command Line Interface

From the terminal, setup your home directory so that it looks like the following:

Note that username is your home directory, the directory that is the same name as you used to log in. The directories Desktop, Documents, Downloads, Music, Pictures, Public, Templates, and Videos already exist and you do not need to modify them. The directories cs120, labs, assignments, and lab1 do not exist, so you need to create them.

CodeLab

Register for CodeLab by following these instructions:

  1. Go to the Code Lab web page.
  2. Click on the Register for CodeLab link.
  3. Enter the Section Access Code ROAN-12037-HUGN-18 and click the Continue button.
  4. Continue filling out the forms. Be sure to enter your Roanoke email address and first and last names, these will appear on my roster.

Once you are registered log in to CodeLab, if you are not already, and complete exercise UNIT-00001

ASCII Art

ASCII (pronounced ass-kee) is system for encoding characters including the letters of the English alphabet, numbers, and punctuation symbols, essentially the characters you see on the keyboard. ASCII art is pictures created using only the ASCII characters. Making smiley faces for text messaging is one form of ASCII Art (^_^). They can also be much more complicated.

In Emacs create a python program in a file called ascii_art.py in your lab1 directory. The program should print some ASCII art when run. The art should be more complicated than a smiley face, but does not need to be realistic like the complicated examples above. It should be multiple lines long and you should sign your names at the bottom of the drawing. You can design it yourself or do web searches for art that you can reproduce.

Submission

Please show your source code and run your programs for the instructor or lab assistant. Only a programs that have perfect style and flawless functionality will be accepted as complete.