
The purpose of this project is to help you become familiar with the GNAT compilation system and the editor on felix (the Sun/Solaris server in the SEAS Computing Facility).
The first part will help you to become familiar with the compilation system.
Compile, link, and execute the programs from Chapter 2. Note that all the programs in the book are available to you in the programs51 subdirectory. Each program's file name is the same as its program name, except that the file name is in lower case. (Example: the program Distance, Program 2.5, is in the file distance.adb.) Choose one of the last few programs to compile, link, and execute with turnin running.
You will find that all the programs compile without errors except Program 2.10. Print out and turn in the listing file from Program 2.10, showing the error messages given by the compiler.
The second part will help you learn to use the software development method as discussed in Chapter 2.
Problem: You have just gotten back from a trip to the beautiful country of LaLa Land. While you were there, you found a great deal on a car, so you brought it back with you. But you have a problem: in LaLa Land, the distances are measured in furlongs. Each furlong is 1/8 mile (really!). So the odometer (mileage counter) in your beautiful new car tells you how many furlongs you've traveled. Not only that, but speeds are measured in furlongs per fortnight (fpf). Each fortnight is two weeks or 14 days (really). Since in LaLa Land, the highway speed limits are, of course, given in these units, your car's digital speedometer gives your car's speed in fpf!
You love your car, but don't have money for a new speedometer. Luckily, you're a great programmer, so you can develop a program to convert from fpf to miles per hour (mph). That way, when you look at your speedometer and see (for example) 147840, your program will immediately tell you that you're traveling 55 mph. (In Project 2, we'll build a speech recognizer so you can just read those numbers out loud to the program--just kidding!)
Your job is to design and code such a program, testing it with some typical highway speeds. The program will ask for a speed in fpf, and display the result in mph.
For details on what to turn in, please read the handout Preparation and Grading of Programming Projects: the Importance of Professionalism.