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 ;
passing.txt containing the grades greater than or equal to ;
statistics.txt containing the percentage of students that have passed the course, rounded to decimal digits.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
