Question: Instructions:( don't use array ) Write a java program that will: Read bank account information contained in the text file AcctInfo.txt (sample file attached) Determine

Instructions:( don't use array)

Write a java program that will:

Read bank account information contained in the text file "AcctInfo.txt (sample file attached) Determine the monthly fee for each account Calculate the total amount of money deposited in all the accounts Your program must process the text file but be written in such a way that it can handle a similarly formatted file containing any number of accounts. The text file contains the following bank account information in this order:

Account Number Account Type Customer Name Customer Type Account Balance Each account is separated by a blank line.

There are two types of accounts:

Savings Checking There are three types of customers:

Value Advantage Premier The monthly fee is calculated in the following way:

Account Type Customer Type Balance Monthly Fee Savings All types All balances

$0 Checking Value Under $1,500 $5 Checking Value $1,500 or more $0 Checking Advantage Under $1,000 $10 Checking Advantage $1,000 or more $0 Checking Premier Under $25,000 $30 Checking Premier $25,000 or more $0 Apply the divide and conquer approach to your program to break the problem it solves into smaller problems.

The program must be fully modularized. Note: read the file from the Main method.

Your program must display the complete bank account information for each individual account (found in the "AcctInfo.txt" text file) as well as the monthly fee for that account. It should also display the sum of all the account balances.

text file 40239 Checking Charles Xavier premier 31000.35

20925 Savings Scott Summers Value 345.89

21354 Savings Robert Drake advantage 1235.23

45687 Checking Warren Worthington Advantage 675.98

43234 Checking Henry McCoy Premier 24576.76

21356 Savings Jean Grey Premier 12678.45

40123 Checking Lorna Dane value 1105.78

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!