CS120
Lab #1

Due at the end of lab.

0) Introduce yourself to the students around you in lab.

1) Use putty to log into wormulon.cs.uidaho.edu. You will use your Vandal Username and password to log on.

2) Use the mkdir command (short for make directory) to create a directory called labs (mkdir labs).

3) Use the cd command (short for change directory) to move into the new labs directory.

4) Use nano or emacs to create a file called fortune.cpp and write the Fortune Teller program in the file. Add a block of comments to the beginning of the program (or add to the existing block) that lists your name, section number, date, and the assignment number.

5) Use g++ to compile the Fortune Teller program (g++ fortune.cpp). This will create a file called a.out. You may need to type ./a.out to run the program.

6) Make the following modifications to the Fortune Teller program:

6) Once the Fortune Teller program with your modifications is working properly, use the script command to create a printable output file. The command script lab1output will create a file called lab1output.

7) Once the script is started run the Fortue Teller program, then use the commands pwd and ls to show the current directory and its contents. Finally, use the exit command to end the script.

8) You should now have a file called fortune.cpp containing the Fortune Teller program and a file called lab1output containing a 'transcript' of you running the Fortune Teller program and the pwd and ls commands. Print both files (using the lpr command) and turn them in.