CMSC 106 HOMEWORK ASSIGNMENT #1

DUE: January 7, 1998 (start of class)

  1. Design and code a program which will interactively allow a user to determine the larger, difference and sum of two numbers. The user should be prompted for the numbers to be input and then select from a menu of the above options (use integers only). At least on of the three options should be implemented as a separate function.

  2. Document the code. Comments should be brief but informative. A good rule of thumb is a comment for each function. Also a header comment with your name, social security number, the assignment number, a general description of the program and the names of any files in your account needed to execute the program.

  3. Execute the code (at least twice) using the "script" command to retain the runs.

  4. Hand in a print-out of the documented code along with the runs.