PROGRAMMING EXERCISES: R D B

advertisement
PROGRAMMING EXERCISES:
READING DATA FROM A BINARY FILE
1. Go back to the Binary Integers program that you created in the previous lesson, and write a
program that reads each integer value stored in the binary file called binaryFile.dat and calculates
and outputs the total numbers in the file and the average of the numbers.
Your program output should look something like this:
Save the project as Average Integers in your UNIT 4 folder.
2. Go back to the MyiPod application from the previous lesson, and write a program that reads and
outputs the artist, song titles and genre that was written to the file that was named myMusic.dat.
Your program output should look something like this:
Save the project as iPodReader in your UNIT 4 folder.
Reading Data from a Binary File
Page 1 of 1
Download