Question: Goal: Learn to write to multiple files at the same time. Assignment: A file named grade.txt contains the list of grades of a computer science

Goal: Learn to write to multiple files at the same time.
Assignment: A file named grade.txt contains the list of grades of a computer science course. Each line is a single integer value.
Write a program that creates the following files:
failing.txt containing the grades less than 6;
passing.txt containing the grades greater than or equal to 6;
statistics.txt containing the percentage of students that have passed the course, rounded to 2 decimal digits.

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 Programming Questions!