CMPSC 101 - Files Worksheet #2 Name -

1. Write a program that opens a sequential access file named "StudentScores.txt", reads the five first integers listed there (on separate lines), and displays those values each separated by a single space on one line of output.



















2. Write a program that asks the user to input 5 integer values between or including 0 and 100. The program should then compute the average and write the average to a sequential access file named "Average.txt".