CS 1620 Assignment #4 Summer I 1999

Due: Monday June 7, 1999 at midnight
Weight: 5%
Late Penalty: -20% per day late

  1. [20] Make the following modifications to your weight converter program from assignment #3.
    1. ensure that only weights greater than 0 are entered
    2. the program should continue asking for new weights until the user wishes to stop
    3. instead of converting the input weight to the corresponding weight for all planets, just convert to the weight on a single planet of the users choice. If no planet is given, convert to earth weight( i.e. no conversion)
    4. format the weights to show exactly 2 decimals.
  2. [30] Page 359 #21.

Total marks -- 50


Computer Science 1620
Department of Mathematics & Computer Science
University of Lethbridge Home Page