FORTRAN programming assignment 1
Assigned:
Due:
Deliverables:
Programmer: Elizabeth Adams
Course: CS 355 Spring 2003
Date:
Language: FORTRAN (using only features present in early FORTRAN)
Compiler: Lahey FORTRAN 95
Environmment: Windows NT
Source Filename: EndErr.FOR
Executable Filename: EndErr.exe
Purpose of program
Program input
Program output
Write a program that will read three numbers (A, B, and H) which appear on a single input line in F10.2 format. These are to represent the lengths of the two parallel sides and height respectively or a trapezoid, and are to be used to compute the area of the trapezoid using the formula area equals ½ the sum of the sides times the height. The program should print oput A,B, H, and the area and then return to read three new values of A,B, and H.
Possible Questions:
· How many set of values will there be?
o not specified
· How do we know when to stop then?
o let’s talk about it