CPSC 120 Assignment 2 Back to Assignment index page
Instructor: Brenneman
Due Date: midnight, Monday, Sept 10

Declaration of variables, program structure and documentation, assignment statements, input/output statements.

Description:  You are to design and code a program that will calculate the speed in miles per hour of people who run races measured in yards.   Your program should ask the user to input the number of yards run and the time in seconds it took for you to complete the distance, it would then calculate and output the average rate of speed in miles per hour.

For example:

Program Outputs How many yards did you run?
User Inputs 100
Program Outputs How many seconds did it take to complete?
User Inputs 10
Program Outputs The average speed in mph was 20.4.

Note: In this program you must convert yards/sec to miles/hr. 
Some conversion factors that might be useful:
5280 feet per mile         3600 seconds per hour

The program must be in a file named program2.adb, don't forget to use the .adb extension for your filename.  Use the submit command to turn in your program for grading.  Example:
submit cpsc120-05 program2.adb
remember to use the correct section number for your class.
Please compile and run your program immediately before submitting it.   Never make a change to the code file(s) and turn it in without compiling and running it first.  It is very easy to make a last minute mistake that introduces syntax errors, so checking before submitting can save you an unnecessary grade of 0.  

You may submit as many times as you like, but only the last submission is kept.   Since only the last submission is kept, if the last one is late, then your assignment is late and will receive an automatic grade of zero (0).