A.     Source files:

DemoRandomAccessFile.java

Test.out

B.     Sample Output Screen: