final_F2006_key

final_F2006_key - 3. 4.33333349 5.66666698 1.33333337 2. 3....

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

View Full Document Right Arrow Icon
MAE 10 Final 2007 Key History 1. Semiconductors. 2. Inventing FORTRAN. 3. Inventing ENIAC. 4. UNIVAC. 5. UNIX and Windows. 6. A bit is a binary digit, and a byte is a group of bits, usually 8. UNIX - List the files in the current directory using long list format. - Same as above plus the display of file sizes in blocks. - Display the manual for the cat command. - Display the first few lines of the file "tails". - Display the last few lines of the file "pascal.f". Problem 1 1. The second IF statement is missing a THEN. 2. Both ELSE IF statements need to be followed by THEN. 3. OK. 4. The ELSE IF statement needs to be replaced by ELSE. 5. The second single line IF statement does not need a THEN. Problem 2 1.
Background image of page 1

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

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

Unformatted text preview: 3. 4.33333349 5.66666698 1.33333337 2. 3. 1.75 4. 3. 3. 3. 3. 3. 3.33333325 4. 3. 3. 3. 3. 6. 5. 3. 3. 3. 3. 0. Problem 3 SUBROUTINE P3(J,N) DIMENSION J(N) DO 10 i=1,N J(i)=1-MOD(J(i),2) 10 CONTINUE RETURN END Problem 4 See Homework 7 Solutions: Chapter 8 - Problem 7 Problem 5 PROGRAM FILL INTEGER A,N(20,20) PRINT*, 'Enter the dimension of the matrix' READ*, A PRINT*, 'Enter the valus of the first row' READ*, (N(1,i),i=1,A) DO 10 i=2,A DO 10 j=1,A IF (j .LT. i .OR. j .GT. (A-i+1)) THEN N(i,j)=0 ELSE N(i,j)=N(i-1,j-1)+N(i-1,j)+N(i-1,j+1) ENDIF 10 CONTINUE DO i=1,A PRINT30,(N(i,j),j=1,A) ENDDO 30 FORMAT(20I5) END Problem 6 See Homework 7 Solutions: Chapter 9 - Problem 7...
View Full Document

This note was uploaded on 08/31/2010 for the course ENGRMAE 10 taught by Professor Staff during the Spring '08 term at UC Irvine.

Page1 / 2

final_F2006_key - 3. 4.33333349 5.66666698 1.33333337 2. 3....

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