CS 1401 Homework #4

Date Assigned: Monday, October 3 or Tuesday, October 4, 2005.

Due Date: Wednesday, October 5, 2005, or Thursday, October 6, 2005, before the beginning of your lecture section.

Goal: the goal of this assignment is to learn how to read from files, write into files, and do while loops in Java.

Assignment: A TA needs to transform number grades into letter grades. The nominal percentage-score-to-letter-grade conversion is as follows:

Please help your TA. The number grades are contained, line by line, in a file number.dat. Write a piece of code that reads these grades line by line, converts then into letter grades, and places the resulting letter grades into the new file letter.dat.

For example, if the file number.dat had the following grades:

93
88
70
then the file letter.dat should contain
A
B
C