Question
If you can write the program in C Develop a program which reads data from an input sequential access file (scores dat), manipulates the data
If you can write the program in C
Develop a program which reads data from an input sequential access file (scores dat), manipulates the data and writes the output data into another sequential access file (scores.out0. The input file scores.dat is provided to you beforehand. contains the students' id numbers. scores of test-1 test 2 and test-3 in each row. You will read data from scores.dat fle and calculate each student's lowest score, highest score and average score. Then you will write student's id number, students lowest score, highest score and average score to the output file scores.out. scoresuout file has to have an appropriate header for each column. Assume that you do not know how many records are there in the input fie. Followings are the sample snapshots of input fie and, the output fie after you run your 1111 56 88 2222 95 93 95 3333 67 91 66 4444 89 69 5555 78 80 90 100 7777 79 86 84 100 scores dat TID Lowest Highest Average 75.33 2222 93 94.33 74.67 3333 66 91 4444 69 75.67 5555 78 82.67 100 98.33 19 83.00 100 99.00 68.33 8888 98 9999 45
Develop a program which reads data from an input sequential access file (scores dat), manipulates the data and writes the output data into another sequential access file (scores.out0. The input file scores.dat is provided to you beforehand. contains the students' id numbers. scores of test-1 test 2 and test-3 in each row. You will read data from scores.dat fle and calculate each student's lowest score, highest score and average score. Then you will write student's id number, students lowest score, highest score and average score to the output file scores.out. scoresuout file has to have an appropriate header for each column. Assume that you do not know how many records are there in the input fie. Followings are the sample snapshots of input fie and, the output fie after you run your 1111 56 88 2222 95 93 95 3333 67 91 66 4444 89 69 5555 78 80 90 100 7777 79 86 84 100 scores dat TID Lowest Highest Average 75.33 2222 93 94.33 74.67 3333 66 91 4444 69 75.67 5555 78 82.67 100 98.33 19 83.00 100 99.00 68.33 8888 98 9999 45Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started