Question: Exercise #3: Write a program that finds all students who score the highest and lowest average marks of the first two homework in CS (I).

 Exercise #3: Write a program that finds all students who score

Exercise #3: Write a program that finds all students who score the highest and lowest average marks of the first two homework in CS (I). Your program should read the data from a file called "hw2.dat" and displays the output to another file called "hw2.out" and on the screen as well. Each data line contains student name and his/her marks. The output should display all student names, marks, numerical grades and letter grades. In addition, you should output the highest and lowest average marks and those who earned. If your input file contains: Input File:"grade.txt" Ali 80 81 Noora 60 70 Aisha 70 78 Ruqaya 70 88 Output File "report.txt" Then your output should look like: Student Name Markl Avg. Mark Grade Ali 80.00 81.50 Noorai 60.00 65.00 Aisha 70.00 74.00 The Maximum average mark is: The minimum average mark is: Noorai Mark2 81.00 70.00 78.00 81.5 Scored by: 65.5 Scored by: 308

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!