midterm2_F07_key

midterm2_F07_key - 6 6 9 6 7 9 4.) 6 8 10 5.) 11 3 1...

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

View Full Document Right Arrow Icon
MAE-10 Midterm Exam II Key Fall 2007 History - Charles Babbage: originated the idea of a programmable computer. - John Atanasoff: invented the first automatic electronic digital computer. - Joseph Marie Jacquard: originated punched card design. - Augusta Ada: credited to be the first computer programmer. - John Nash: developed the concept of Nash equilibrium - a game/mathematical/economics equilibrium theory. Problem 1 (dashes denote spaces) 1.) -1234.57---Jame ----9.88---Bond 2.) 0.12E+04 -Jame 0.99E+01 -Bond 3.) 1234.57--7 ---9.88*** 4.) ***-Bond-007-*** 5.) -Jame----1234.57 -Bond-------9.88 Problem 2 1.) 3. 4. 1. 3. 2.) 3. 3. 1. 3. 3.) 7. 2. 5. 7. 4.) 2. 2. 6. 3. 5.) 2. 8. 2. 27. Problem 2 1.) 4 6 8 4 6 9 4 7 8 4 7 9 5 6 8
Background image of page 1

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

View Full DocumentRight Arrow Icon
5 6 9 5 7 8 5 7 9 2.) 4 7 7 4 7 6 5 7 7 5 7 6 6 7 7 6 7 6 3.) 4 899 5 5 899 6 6 6 8 6 7 8
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6 6 9 6 7 9 4.) 6 8 10 5.) 11 3 1 Problem 3 1.) PROGRAM CIRC REAL D, A PARAMETER(PI = 3.1415) A(D)=PI*(D/2.)**2. PRINT*, 'Enter the value for the diameter' READ*, D PRINT*, 'Area = ', A(D) END 2.) LOGICAL FUNCTION T(S1,S2,S3) REAL S1,S2,S3 T = (S1+ S2) .GT. S3 .AND. (S2 + S3) .GT. S1 .AND. (S3 + S1) .GT. S2 RETURN END 3.) SUBROUTINE F(N) INTEGER A,B,C,SUM A=1 B=1 C=1 IF (N .LE. 2) THEN DO i = 1,N PRINT*, 1 ENDDO ELSE PRINT '(I2)', 1,1,1 DO i=4,N SUM = A+B+C PRINT*, SUM A=B B=C C=SUM ENDDO ENDIF RETURN END 4.) SUBROUTINE POLY(a,b,c,ANS1,ANS2) REAL a,b,c,ANS1,ANS2 IF (b**2.-4.*a*c .LT. 0.) THEN PRINT*, 'Complex Solution' ELSE ANS1 = (-b + SQRT(b**2.-4.*a*c))/(2.*a) ANS2 = (-b - SQRT(b**2.-4.*a*c))/(2.*a) ENDIF RETURN END...
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 / 3

midterm2_F07_key - 6 6 9 6 7 9 4.) 6 8 10 5.) 11 3 1...

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

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