
Ephemeroptera, meaning "short-lived", is an order of insects commonly known as mayflies. These insects actually live for as long as several years as larvae, but only live as adults for a few hours or days. For this lab, you will write a program that calculates how many adult mayfly lifespans a person has lived. Use 4 days as a "maximum" lifespan for ephemeroptera. To calculate this result, you will need to first calculate age in days (age should be specified as years, months, and days), and then divide the result by 4. A starting program is given.
This lab is intended to help you become familiar with running programs on Python. It is intended to be completed on Ubuntu Linux in the MLH 310 lab, however if you have a Unix-like environment on your own computer, this will work just fine. OSX probably has Python already installed, and you can obtain a terminal in finder. Windows is somewhat more complicated, and I would recommend using a computer in MLH 310 this week, and either installing Cygwin or using IDLE for the rest of the class.
A demo of the procedure will be given at the beginning of lab. In brief, the series of steps to complete the lab is:
wget http://isoptera.lcsc.edu/~seth/cs111/examples/lab1start.py
python lab1start.py
cp lab1start.py lab1finished.py
gedit lab1finished.py &
python lab1finished.py