Question
A Bank maintains customer records in a random access file. I need to write an application that creates 9,000 blank records and then allows the
A Bank maintains customer records in a random access file. I need to write an application that creates 9,000 blank records and then allows the user to enter customer account information, including an account number that is 9999 or less, a last name, and a balance. Insert each new record into a data file at a location that is equal to the account number. Assume that the user will not enter invalid account numbers. Force each name to eight characters, padding it with spaces or truncating it if necessary. Also assume that the user will not enter a bank balance greater than 99,000.00. Save the file as WinterParkBankFile.java.
Create an application that uses the file created by the user in Exercise A and displays all existing accounts in account-number order. Save the file as ReadWinterParkAccountsSequentially.java.
Create an application that uses the file created by the user in Exercise A and allows the user to enter an account number to view the account balance. Allow the user to view additional account balances until entering an application-terminating value. Save the file as ReadWinterParkAccountsRandomly.java.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started