w w w
SOLUTIONS
,Contents
1 About This Solutions Manual
w w w 1
1.1 To the Student . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w
.w 1
1.2 To the Instructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w
1
2 Solutions to the Exercisesw w w 3
Chapter 1 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 5
. w w . w . w . w . w . w .
Chapter 2 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 9
. w w . w . w . w . w . w .
Chapter 3 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 17
. w w . w . w . w . w . w .
Chapter 4 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 33
. w w . w . w . w . w . w .
Chapter 5 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 75
. w w . w . w . w . w . w .
Chapter 6 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . .
w w w w w w w w w w w 95
. w w . w . w . w . w . w .
Chapter 7 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 115
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 8 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 121
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 9 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 129
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 10 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 139
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 11 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 159
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 12 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 171
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 13 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 179
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 14 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 189
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 15 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 195
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 16 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 201
w w w w w w w w w w w
. w w . w . w . w . w . w .
Chapter 17 . . . . . . . . . . . . . .
w w w w w w w w w w w w w w w . w . w . w. w . w. w . . . . . . . . . . . . 207
w w w w w w w w w w w
. w w . w . w . w . w . w .
3 Extra Exercises and Their Solutions
w w w w 221
4 Teaching FORTRAN Programming
w w 259
@@SSee
isis
mmiciicsis
oolala
titoionn
, v
@@SSee
isis
mmiciicsis
oolala
titoionn
, 1
About This Solutions Manual w w w
1.1 To the Student w w
This Solutions Manual is intended for the instructor of a course that uses Classical FORTRAN
w w w w w w w w w w w w w w
as a textbook, and for the student who is learning the subject independently.
w w w w w w w w w w w w
If you are a student taking the course for credit you should know that it is a violation
w w w w w w w w w w w w w w w w w
wof academic ethics for you to consult this Solutions Manual, whether you copy verbatim
w w w w w w w w w w w w w
from it or only use it to get ideas about how to work the exercises. The exercises are a
w w w w w w w w w w w w w w w w w w w
valuable aid to learning the material in the textbook, but only if you work them yourself !
w w w w w w w w w w w w w w w w w
Looking up the answers instead of figuring them out deprives you of an opportunity to learn
w w w w w w w w w w w w w w w w
the material. If an answer is for credit, cheating is also personally degrading to you and
w w w w w w w w w w w w w w w w
unfair to your classmates, and it might place you in jeopardy of disciplinary action. If
w w w w w w w w w w w w w w w
wthis is an illicit copy, please destroy it now. If this is a stolen copy, please return it to its
w w w w w w w w w w w w w w w w w w w
rightful owner. Either way, STOP READING.
w w w w w w
If you are a student learning the subject by yourself then you are your own instruc-
w w w w w w w w w w w w w w w
tor. Please read the next section.
w w w w w
1.2 To the Instructor w w
This Solutions Manual is intended for the instructor of a course that uses Classical FORTRAN
w w w w w w w w w w w w w w
as a textbook, and for the student who is learning the subject independently.
w w w w w w w w w w w w
If you are in either category you should know that it greatly diminishes the usefulness of
w w w w w w w w w w w w w w w
the exercises for graded work if their solutions become public. Please refrain from loaning
w w w w w w w w w w w w w w
this book to others, distributing solutions to others, or posting solutions on the World Wide
w w w w w w w w w w w w w w w
Web. If you want to show a group how to solve a problem, I suggest making a transparency
w w w w w w w w w w w w w w w w w w
or scanning to a .pdf file for projection, or posting the solution in a display case
w w w w w w w w w w w w w w w w
under glass, so as to reveal the answer while discouraging photocopying or electronic
w w w w w w w w w w w w w
scanning.
w
At the same time, it is prudent for instructors to expect that some students will have access
w w w w w w w w w w w w w w w w
to the solutions and thus an unfair advantage over their classmates who do not. If you
w w w w w w w w w w w w w w w w
suspect this might be the case, you should consider assigning textbook exercises whose
w w w w w w w w w w w w w
solutions are not included in this Manual or making up problems of your own, perhaps
w w w w w w w w w w w w w w w
modeled on exercises in the textbook.
w w w w w w
Chapter 2 of this Manual provides solutions to about half of the exercises in the text,
w w w w w w w w w w w w w w w
distributed in such a way as to represent each problem type in each chapter while favoring
w w w w w w w w w w w w w w w w
easy problems and early chapters. Chapter 3 of this Manual contains some additional
w w w w w w w w w w w w w
exercises and their solutions. Chapter 4 contains some materials that I have found
w w w w w w w w w w w w w
useful in teaching programming from Classical FORTRAN.
w w w w w w w
1
@@SSee
isis
mmiciicsis
oolala
titoionn