Question: Labl: Assessment (File Input & Output) Write a java program that: 1. Create a file with the name BankAccount.txt and has the following content (the

 Labl: Assessment (File Input & Output) Write a java program that:

Labl: Assessment (File Input & Output) Write a java program that: 1. Create a file with the name "BankAccount.txt" and has the following content (the account name, account number and balance of each account) The file will look like this: Amani Ali 12345432 500 Sarah Mohammad 456663343 4000 Omimah khalid 998787655 2000 Monirah Ahmad 55433424 10000 2. Read the file "BankAccount.txt" content one by one and increase the balance by 50% for each account, then write the result in a new file with the name "UpdatedAccount.txt". The new file content should have the following structure: Amani Ali 12345432 750 Sarah Mohammad 456663343 6000 Omimah khalid 998787655 3000 Monirah Ahmad 55433424 15000 3. Read an account number from the user and search the file "UpdatedAccount.txt", then print all the information of this account if exists, other wise display a message this account not found". Note:- Search google to find some of the built-in methods to help you in this program, such as trim(), split(), equals(), Integer.parseInt(). Usfule links: https://www.candidjava.com/tutorial program-to-search-word-in-a-file/ https://stackoverflow.com/questions/19942076/how-to-extract-numbers- from-a-text-file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!