Answer to Question #2443 in C++ for reem

Question #2443
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:
95-100: A
90-95: A-
85-89: B+
80-84: B
75-79: B-
70-74: C+
65-69: C
60-64: C-
55-59: D
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
1
Expert's answer
2011-06-01T13:02:25-0400
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS