{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ENGR 126 Spring 2007 Exam 3 Solution

# ENGR 126 Spring 2007 Exam 3 Solution - ENGR 126 Engineering...

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

ENGR 126 Engineering Problem Solving and Computer Tools Exam 3, page 1 of 2 Last, First PUID DivSec, Seat Assignment Problem # 1 (6 points, answer two of three) a) _ cp /fairway/References/Brown_R.doc /fairway/E126fall05/sample.doc b) _ cp ../References/Brown_R.doc sample.doc _______________ c) _ cp Brown_R.doc ../E126fall05/sample.doc ___________________ Problem # 2 (16 points) You will not necessarily use all the output lines provided. 1) __ k___j____kk____a ________ 2) _ _1___5____3_____ 5_______ 3) __ 1___3____3_____5 _______ 4) __ 1___1____3_____5 _______ 5) __ 3___5____5_____5 _______ 6) __ 3___3____5_____5 _______ 7) __ 3___1____5_____3 _______ 8) __ 5___5____5_____10 ______ 9) __ 5___3____5_____10 ______ 10) __ 5___1____5_____9 _______ 11) _________________________________________________________ Problem # 3 (12 points) Output from two loops LOOP 1 LOOP 2 Problem # 4 (6points) Translate a vector operation into an equivalent for loop. 9 8.0 4 7.5 9.5 5 or if values carried through 7.5 7.5 5 for k=1:361 x(k) = (pi/180)*(k-1); y(k) = 2*exp(x(k))*sin(x(k))^2; end

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

View Full Document
ENGR 126 Engineering Problem Solving and Computer Tools Exam 3, page 2 of 2 Last, First PUID DivSec, Seat Assignment Problem # 5 (10 points plus 2 possible bonus points) 1) _ Error dimensions do not match _________________________
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

ENGR 126 Spring 2007 Exam 3 Solution - ENGR 126 Engineering...

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

View Full Document
Ask a homework question - tutors are online