ENGR%20126%20Spring%202007%20Exam%203

# ENGR%20126%20Spring%202007%20Exam%203 - ENGR 126 EXAM III...

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

ENGR 126 EXAM III Engineering Problem Solving and Computer Tools April 16, 2007 Problem # 1 (6 points) Write commands to copy the file Brown_R.doc to the E126fall05 directory and name it sample.doc given the structure below, under the following conditions (answer two of three): a) a command that would work from anywhere in the file system b) a shortened command that would take advantage of the fact that you were in the E126fall05 directory c) a shortened command that would take advantage of the fact that you were in the References directory / | --------------------------------------------------- | | | cree fairway huron | ------------------------------------------------- | | | | DOC References E126fall05 E126spr06.cps | ---------------------------------------------- | | | | Med_Schl Employment Grad_Schl Brown_R.doc Problem # 2 (16 points) Identify the correct Command Window display for the following MATLAB code. You will not necessarily use all the lines provided on the answer sheet. a=5; fprintf('k j kk a\n') for k=1:2:6 for j=5:-2:1 kk=k+2; a=k*2; elseif (k==4 | k==3) a=k; elseif (k>j) a=a-1; end fprintf('%g %g %g %g\n',k,j,kk,a) end end 2

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

View Full Document
ENGR 126 EXAM III Engineering Problem Solving and Computer Tools
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/14/2009 for the course ENGR 126 taught by Professor Oakes during the Fall '08 term at Purdue University.

### Page1 / 6

ENGR%20126%20Spring%202007%20Exam%203 - ENGR 126 EXAM III...

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

View Full Document
Ask a homework question - tutors are online