Program 1 is here.
For your sample terminal session do the arithmetic which is used for
the example on the program description.
Program 2 is here.
Sample input for Program 2 is here.
Program 3 is here.
The mountain data needed for your program is here.
The midterm exam will be on Thursday, October 15.
A review sheet for the midterm can be found here.