Question: Problem 2-Byte 10 (40%) Objectives Learn about binary file I/O reading and writing Description: Write a program (no GUI required), CalcAverages.java, that reads a binary

 Problem 2-Byte 10 (40%) Objectives Learn about binary file I/O reading

Problem 2-Byte 10 (40%) Objectives Learn about binary file I/O reading and writing Description: Write a program (no GUI required), CalcAverages.java, that reads a binary file ClassList.dat, calculating the grades and prints the results The file layout is as follows: Binary data file contains: Data type Data item UTF Student Name integerStudent number double double double double Grade in class 1 Grade in class 2 Grade in class 3 Grade in class 4 Requirements: Read the binary data file not knowing how many records are in the file. Compute the average of grades, and print the average as the last column of the data read. There are three examples shown. However, the data file contains more data than shown. Do not program for only three people. The program must handle all the data, and terminate without errors Use the printf or String.format method for formatting. Make sure your headings, and column output matches exactly Partial sample of the output: ID Grade1 Grade2 Grade3 Grade4 Avg Name Josephyn Brown Fred Brown George Foreman 192837873 98.5 88.9 92.4 91.1 92.7 982883456 72.5 8.4 82.4 91.1 63.6 78374875 72.5 78.4 81.1 75.676.9

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!