About the Lab

For this lab, you will be writing two programs. Make sure you are done with both before asking your TA to check you off!

First, to practice using if statements, you are going to make a program to help a police officer calculate the appropriate fine for driving over the speed limit. In the second part of the lab, you will practice simple string comparison.





Navigation and directory creation

After logging into GL, navigate to the Labs directory inside your 201 folder. Create a folder there calledl lab4, and go inside the newly created lab4 directory.

linux2[1]% cd 201
linux2[2]% cd Labs
linux2[3]% pwd
/afs/umbc.edu/users/k/k/k38/home/201/Labs
linux2[4]% mkdir lab4
linux2[5]% cd lab4
linux2[6]% pwd
/afs/umbc.edu/users/k/k/k38/home/201/Labs/lab4
linux2[7]%