CS120
Lab #1

Due at the end of lab in week 2.

In this lab you will be creating a subdirectory (like a folder) for storing your labs and a program to create a piece of ASCII art. ASCII art is just an image created using the basic ASCII characters, 'a', 'b', etc. ASCII art is one of the precursors to emojis.

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

1) Use ssh (or putty) to log into username@cs-120.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 vim or emacs) to create a file called ascii.cpp.

5) Write a program that uses output statements to display a simple ASCII art image. Use g++ to compile your program (g++ ascii.cpp). This will create a file called a.out. You will need to type ./a.out to run the program.

6) Plan on taking several iterations to make an interesting image.

7) Remember to add a block of comments to the beginning of the program that lists your name, section number, date, and the lab number.

8) Once your program is working properly, use the script command to create a printable output file. The command script lab1output.txt will create a file called lab1output.txt.

9) Once the script is started, run your 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.

10) Turn in your program and your lab1output.txt file to your lab instructor in Canvas.