Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me create these classes in Java. Please post screenshots of your code and output since it is easier to see the format that
Please help me create these classes in Java. Please post screenshots of your code and output since it is easier to see the format that way. I ha dposted this question before but got completely wrong answers; please post the correct solution. Thank You!
you will develop four classes called Bank, Account, Customer, and Transaction to store account information, customer information, and transaction information of a bank. Based on the sample input data and sample run, you should identify operations of the project you can use either Array or ArrayList. If you use arrays, you can assume that your Bank class can have maximum 30 Accounts, 30 Customers, and 100 Transactions. Note that an Account object can have only one Customer, and each Customer can have a maximum of two Accounts (-one checking and one savings account). A Transaction object should include the account number, transaction type( deposit, withdrawal, and closing an account), and trans- action date/time information Sample Input File The following file represents a sample bank data file, c: \\tmp\\test1.txt, which is used in the sample runs below. Note that the first line (- 4) indicates the number of customers in the bank. The customer's information includes the name, address, zip code, and Social Security Number (SSN). Note that each customer data is delimited by comma symbol (). After the customer data, there is a number of accounts5 in the example). Each account in formation has SSN, account number, account type (1: checking, 2: savings), and current balance. Again, comma is used as a delimiter. 4 Tom Smith,123 University Center,93955,777-77-7777 Alice Smith,123 University Center, 93955, 888-88-8888 Joe Otter,2440 Ocean Avenue,93900,999-99-9999 Monica Smith,123 University Center, 93955,123-45-7777 777-77-7777,1000,1,10.0 888-88-8888,2000,1,50.25 777-77-7777,3000,2,100.0 999-99-9999,5000,1,100.25 888-88-8888, 6000,2,500.25
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