This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 9/17/07 Problem Set 3 Problem Problem Statement: Name the five steps in the program development process Solution: Problem analysis and specification Data organization and algorithm design Program coding Execution and testing Program maintenance Problem Statement: The grammatical rules of a language are called its Solution: Assembly Language Problem Statement: What are the three types of errors that can occur in developing a program? Solution: RunTime, logic, syntax 9/17/07 Problem Set 3 Problem Problem Statement Program to add two real numbers. Variables used are: X, Y : the two real numbers Sum : the sum of X and Y FORTRAN Code PROGRAM Arithmetic IMPLICIT NONE REAL :: X, Y, Sum X = 1.234 Y = 5.5 Sum = X + Y Print *, "Sum of", X, "and", Y, "is", Sum END PROGRAM Arithmetic Output ./a.out Sum of 1.234000 and 5.500000 is 6.734000 Solution Check 9/17/07 Problem Set 3 Problem Problem Statement Write/compile/run a FORTRAN program that computes ....
View
Full
Document
This note was uploaded on 04/06/2008 for the course AER E 160 taught by Professor Haugli during the Fall '07 term at Iowa State.
 Fall '07
 Haugli

Click to edit the document details