final - Exam 2 Name: Account: Instructions Write your name...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exam 2 Name: Account: Instructions Write your name and account on all sheets. Solve two problems out of A1, A2, A3, and two problems out of B1, B2, B3. Each problem is worth 10 points. If you do not follow the directions and solve all three problems A1, A2, and A3, you will get credit only for A1 and A2. Similarly, if you solve all three problems B1, B2, and B3, you will get credit only for B1 and B2. When writing pseudocode for the problems in part B, you may associate additional information not contained within the object’s class with an object, but you must comment any additional data structures used at the top of your procedure. For example, to associate a color with a regular binary tree node: Algorithm myAlg(. ..): Input : ... Output Additional Data Structures : node .color stores a color value for a binary tree node { do some stuff here } current . color red { do some other stuff here } currcolor current . color { do more stuff here } Write your solution on the same sheet as the problem (use the back side if necessary).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

final - Exam 2 Name: Account: Instructions Write your name...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online