CMSC 160 -- Lab 11

Lab 11

Download your lab file

  1. Use wget to download the file at http://cs.longwood.edu/courses/cmsc160/f17/files/lab11.tgz
  2. Uncompress the lab11.tgz file by using tar -xvzf lab11.tgz
  3. Use ls to see that there is a new directory called lab11
  4. Use cd lab11 to change directory to the lab11 directory

The Problem

We will be using scalable vector graphics (SVG) files in this lab. SVG files are text files which can be displayed as graphics when viewed in a web browser.

In your lab11 directory is a subdirectory of .map files. These files contain svg shapes for each county and city in the commonwealth of Virginia. There is a text file in the subdirectory called index.txt. This file contains the file name for each .map file in the directory. You need to open each file and write its' contents to a single output file named virginia.svg. You will surround each .map file with a starting <g fill="rgb(128,128,128)" stroke="rgb(0,0,0)" stroke-width="24"> and a closing </g>.

Each time you run your program you will want to copy your virginia.svg to your public_html directory. You can do this with the following command:
make copy

Your output should look something like this.

Handin

Your completed lab is due on Nov. 14th at 11:59pm. It should be handed in by using the make handin command.