t2vC - if length(vec)==0 ret = 0 else temp = vec(1...

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

View Full Document Right Arrow Icon
CS1371 – Test 2 Version C Solutions October 24th, 2007 CS 1371 Computing for Engineers Test 2 Version C Solutions – Fall Semester 2007 Problem 1 – Structure Arrays [50 Points] 1. varA = A. {‘Name’;’Status’;’Duty’} 2. varB = B. 1 3. varC = A. 0 4. varD = C. ’DavidSeanNathanHarold’ 5. varE = B. ’GarbageDishesFloorCounter-top’ 6. varF = C. [25 40 30] 7. varG = D. Error Problem 2 – File I/O [50 Points] 1. varA = C. 9 2. varB = A. ‘Ian’ 3. varC = A. 0 4. varD = B.10 5. varE = A. 0 6. varF = B. 1 Problem 3 – Recursion [50 Points] A. function ret = recursive_Cap(vec)
Image of page 1

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

View Full Document Right Arrow Icon