Computer Science
1107
AN INTRODUCTION
TO FORTRAN
PROGRAMMING
FOR SCIENTISTS AND
ENGINEERS
Fall 2001
Objective:
To further explore writing FORTRAN 77 programs using integer and real
variables.
Note that the sine function applied to a variable in FORTRAN is given by SIN(variable).
L (cm) | A (degrees) |
| |
120 | 15 |
90 | 20 |
60 | 5 |
74.6 | 10 |
83.6 | 12 |
LENGTH (cm) | ANGLE (degrees) | PERIOD (sec) |
===================================== | ||
120 | 15 | answer |
The output for an input of 598 should be similar to:
CONTAINER | NUMBER |
=================== | |
HUGE | 11 |
LARGE | 2 |
MEDIUM | 1 |
SMALL | 3 |
Then hand in the following for each of your two programs:
Recall: For this and
all programming assignments you should follow good software engineering
principles including documenting your program with comments and using
meaningful names for variables. Failure to do this will lead to reduced
credit.
For this and subsequent assignments, you have the option of working in teams of two people. In this case, turn in one copy of your results with both names and student numbers included on every page of every item submitted.
Course Policies | Tentative Schedule | Help and References |
Assignments | Grades and Announcements | Home |