ارجو المساعده في برمجة هذين السؤالين
The file, scores.txt, contains an unknown number of data records for students in a certain section. Each data record consists of two values, ID# and scores of a student. Write a program that reads the data from this file and assigns a letter grade to each student based on the following grading policy. Your result should be stored in a file, grades.txt, which should have three columns, ID#, Score and Letter Grade. Display score with two digits after decimal point.
Score Grade
score>= 90 A
80<= score <90 B
65<=score<80 C
50<=score<65 D
score<50 F
السؤال الثاني
Using the same, scores.txt of task 2, Write a program that first scan through the file to compute the average score of the students, then scan through the file the second time to distribute the students into two files, good.txt containing those students whose score is greater or equal to the average, and poor.txt, containing those students who scored less than the average.
Hint: call rewind (fileAddress) function before you start scanning the second time from scores.txt file.
