Fortran midterm: April 12

The assignment

Read in the 25 values of exam grades for a sample class in the file fakegrades.txt.  Use the bubsort subroutine to sort these grades, and report the median.

To get the input file, type: cp ~gheard/fakegrades.txt .

The rules

bulletYou must not alter the file fakegrades.txt in any way
bulletYou must use a DO loop to read in the grades.
bulletYou must use a formatted print statement to make the number given in the output start one character after the final word
bulletExample:  The median of the scores is 68

Help

You may use your book, your notes, and programs and programs we have written in class.

If you are stuck, each question you ask me will be worth 5 points (out of a possible 100)

Grading

This assignment will be graded out of 100 points based on

bulletlogical use of variables
bulletgood algorithm to approach the problem
bulletcommenting throughout the program
bulletobtaining the correct answer

 

When you are satisfied, email me your program by typing:
mail gheard < midterm.f

GOOD LUCK!!!