next up previous
Next: About this document ...

ESC 251 HW 16 Due: Oct. 11

1)
(6 pts) Write a single F90 program that will search through the integers in the datafile hw16a.in and determine
a)
The row number of the first value that is greater than 100.
b)
The row number of the first value that is less than -10.
c)
The row number of the first value that is zero.
Your program must only read through the data file once.
1)
(6 pts) Write a single F90 program that will search through the datafile hw16b.in and determine the following information
a)
The largest value
c)
The smallest value (in the number line sense)
e)
The smallest absolute value
2)
(7 pts) Write a single F90 program that will compute the sums below:
a)
$ \displaystyle {\sum_{i=1}^{10} i^2 + i}$
b)
$ \displaystyle {\sum_{i=10}^{1} i^2 + i}$
c)
$ \displaystyle {\sum_{i=1}^{20} \frac{i+1}{i}}$
d)
$ \displaystyle {\sum_{i=n}^{n^2} \sqrt{i}}.$     You should read the value of n from the keyboard. Test your program using n = 8.
e)
$ \displaystyle {\sum_{i=1}^{15} \sum_{j = 0}^{i} i + j + ij}$





2017-10-09