![]()
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 .
| You must not alter the file fakegrades.txt in any way | |
| You must use a DO loop to read in the grades. | |
| You must use a formatted print statement to make the number given in the
output start one character after the final word | |
| Example: The median of the scores is 68 |
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)
This assignment will be graded out of 100 points based on
| logical use of variables | |
| good algorithm to approach the problem | |
| commenting throughout the program | |
| obtaining the correct answer |
When you are satisfied, email me your program by typing:
mail gheard < midterm.f