Question: C programing Write a program that does the following: Opens two text files (dat1.txt and dat2.txt) o Each file contains only integers, one per line,

C programing

C programing Write a program that does the following: Opens two text

Write a program that does the following: Opens two text files (dat1.txt and dat2.txt) o Each file contains only integers, one per line, in sorted order Opens one output file (out.txt) Let the user select whether to merge the files or calculate the average of each file o If the user chooses to merge the files, then all the integer values should be written to the output file in sorted order. There should be 5 integers per line, with a tab between each integer value. IMPORTANT UPDATE*There should be no duplicates in the output file! o If the user chooses to calculate the average of each file then you should write the following for each file to the output file: "File fileName had XX values read with a calculated average of Y.YY" Submit your source file (.c) for the assignment

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!