For this programming assignment # 8, you need to submit ONE source code file. De
ID: 3810741 • Letter: F
Question
For this programming assignment # 8, you need to submit ONE source code file. 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.out). The input file scores data is provided to you beforehand. It contains the students' id numbers, scores of test-1 test-2 and test-3 in each row. You will read data from scores.dat file and calculate each student's lowest score, highest score and average score. Then you will write student's id number, student's lowest score, highest score and average score to the output file scores.out. scores.out file has to have an appropriate header for each column. Assume that you do not know how many records are there in the input file. Followings are the sample snapshots of input file and, the output fie after you run your program:Explanation / Answer
Please find the required solution: ---------------------------------- #include #include #include #include using namespace std; double roundTo2Places(double d) { return round(d * 100) / 100.0; } int highest(int num1, int num2, int num3) { return num1 > num2 ? (num1 > num3 ? num1: num3):((num2 > num3)? num2:num3); } int lowest(int num1, int num2, int num3) { return num1Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.