ass1_solutions

ass1_solutions - solutions.txt Tue Nov 22 10:59:18 2011 1 1:

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: solutions.txt Tue Nov 22 10:59:18 2011 1 1: 2:******************************************* 3:./q1_ans/quest1_ans.txt.f90 4: 5:uestion One 6:=========== 7: 8:[Part A] 9: 10: 4 5 1 3 6 2 11:a + b - (c * d) / f + 5.0**e 12: 13: 6 3 1 4 2 7 5 14:a + f * ( b - c ) / ( d - 3 ) - e * f 15: 16: 3 1 6 2 4 5 17:b * ( c / d ) - ( f + a ) / 3.0 * e 18: 19: 1 3 2 4 5 6 20:(( f - e ) * 4 ** c ) * a / d - b 21: 22: 3 2 6 4 1 5 23:a ** b ** c + d / ( e + f ) * 2 24: 25: 26:[Part b] 27: 28:I. -51.0 29: 30:II. REAL 31: 32:III. Operator Numeric Result Data Type 33: 34: ** 9.0 REAL 35: * 35.0 REAL 36: / 0 INTEGER 37: - -33.0 REAL 38: - -42.0 REAL 39: - -51.0 REAL 40: + -51.0 REAL 41:******************************************* 42: 43: 44:******************************************* 45:./q2_ans/fraction.f90 46: 47:PROGRAM fraction 48:!*** Take a fraction either proper or improper and reduce it to its lowest 49:!*** terms. 50: 51: IMPLICIT NONE 52: 53: INTEGER :: a,b,c,gcd,i,bin,ain 54: 55: PRINT*, "Please read in the numerator"...
View Full Document

This note was uploaded on 02/13/2012 for the course MATH 5806 taught by Professor Brooks during the Fall '10 term at Minnesota.

Ask a homework question - tutors are online