Student Number: _
University of Saskatchewan
Department of Computer Science
CMPT 117 Term 2 (Wayne Wang)
Feb 13, 2002
Time: 50 minutes CLOSED BOOK Total marks: 45
1. All questions on this examination sheet are
5. (15 marks)
Design a vector class exactly like the vector class in the STL, except that it also
has a method called doubleup.
Your solution should include a templated denition of doubleup that takes each
element of the vector and multiplies it by 2.
February 14, 2002
11.30am in class (Open Book)
Please read each question carefully before answering it. Anwer each question in a
separate booklet. All the code has been tested. State any assumptio