Share
Explore BrainMass

Java Sequential-Access File-Processing Program

Create a simple sequential-access file-processing program that might be used by professors to help manage their student records. For each student, the program should obtain an ID number, the student's first name, the student's last name and the student's grade. The data obtained for each student constitutes a record for the student and should be stored in an object of a class called Student. The program should save the records in a file specified by the user.

Solution Preview

Please rename attached 561497-StudentsManager.java to StudentsManager.java before you compile and run the program.

Java version "1.7.0_21" was used to compile and execute the program during development and testing. You can compile and execute the program as shown below.

> javac StudentsManager.java

> java StudentsManager
Welcome to Students ...

Solution Summary

Java version "1.7.0_21" was used to compile and execute the program during development and testing. Attached program makes use of two classes: Student, and StudentsManager, and is fairly modularised - it uses runManager, readStudentData, and writeStudentsRecordsToFile methods in class StudentsManager to achieve this modularisation.

$2.19