Input-Output ] Statistics ] Computations ] Error trapping ] Functions ] Strings ] [ Filing ] Graphing ] Randomizing ] Sorting ]

 

 


Using Files

1.  Write a program to accept input that a clerk might place in a file containing student information.  Each student is identified by a name, address, phone number, and social security number.  Use routines to make the input process as error-proof as possible.  Then create a disk file containing that information.  Read the disk file to ascertain its correctness.

2.  Write a program that accepts as input m responses from each of n subjects, where m and n are values provided by the user.  The names of the subjects are also collected.  Place these data in a file that can be used subsequently for data analysis by a possibly different user who need not know the values of m and n.  Demonstrate the success of the filing program by using a secondary program to get the individual-subject means from the filed data.