Question: Write a C program to read a set of scores from a text file, count the number of scores over 80, copy the scores over

Write a C program to read a set of scores from a text file, count the number of scores over 80, copy the scores over 80 into a new file, save it as OUTPUTFILE.DAT, and finally, print the list of number of scores over 80 on screen. Test your program with an input file (name it as INPUTFILE.DAT) containing the following values:

100 50 20 82 60 30 88 78 90 100 63 55 30 85 93 96 63

A sample program execution and output is depicted in below figure:

Write a C program to read a set of scores from a

Start of Program Printing scores over 80 on screen **E*a 100 82 88 90 100 85 93 96 There were 8 scores over 80 End of Program

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