CS 1620 Assignment #2 Summer I 1999

Due: Tuesday May 25, 1999 at midnight
Weight: 3%
Late Penalty: -20% per day late

  1. [4] Page 78 # 2
  2. [5+5] Page 81 # 19, 22
  3. [5] Page 129 # 2
  4. [2] Page 131 # 6
  5. [5] Given the following statements :
          InputBox box1 = new InputBox();
          InputBox box2;
    
          int a = 375;
          int b;
    
          box2 = box1;
          b = a;
    
    Describe the effect on memory of each statement. Explain the differences in the way that objects and numerical data are handled.
  6. Page 134 # 15
    Use $5 bills, twoonies, loonies, quarters, dimes, nickels and pennies. Develop the program in stages as described in the text and in class. You must submit 3 working stages.
    1. [3] skeleton
    2. [6] add input and output format
    3. [10] complete program with calculations added

Total marks -- 45


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