CS 1620 Assignment #1 Summer I 1999
Due: Monday May 17, 1999 at midnight
Weight: 2%
Late Penalty: -20% per day late
Part I (Introduction)
- [1+1+1] Page 5 # 1, 2, 3
- [1+1] Page 11 # 1, 2
- [4+4+3] Page 14 # 3, 4, 6
- [3] If a picture is made up of 64 possible colours, how many bits
would be needed to store each pixel of the picture? Why?
Part II (Object Oriented Programming)
- [2+3+3+5] Page 35 # 2, 3, 6, 12
- [2] What is the relationship between a class and an object?
- [10] Consider a program that maintains payroll information for a company.
It would need to use information about employees of different types
in order to calculate salary and deductions. Design an inheritance
hierarchy for the employees. You must have at least 3 levels in the
hierarchy. List any instance or class variables that would be needed
for each class (super or sub). Hint : Design an employee
superclass and then consider the different types of employees
possible to design the subclasses.
Total marks -- 44
Computer Science 1620
Department of Mathematics & Computer Science
University of Lethbridge Home Page