Write a program that reads a list of students marks in a course from an input file then calculates the students grades and the class average mark and grade. Your program should input the name of the file from the user (via the keyboard).
Each line in the input file contains a student ID followed by marks in homework assignments (out of 10), in lab tests (out of 50) and in the final test (out of 40). Each of these four pieces of information is separated by a tab.
Your program should write the output to an output file called results.dat as follows:
1. For each student write the following on a line: ID followed by the total mark followed by the grade separated by tabs. Assume grades are calculated according to the following table:
Below 55: F
2 If the class average is 80% or above your program should display on the screenon the screen the message “high average”, otherwise display “normal average.” Use the ternary
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.