in java 4. Write a banking program that simulates the operation of your local ba
ID: 3541670 • Letter: I
Question
in java
4. Write a banking program that simulates the operation of your local bank. You should declare the following collection of classes. Class Account Data fields: customer (type Customer), balance, accountNumber, transactions array (type Transaction []). Allocate an initial Transaction array of a reasonable size (e.g., 20), and provide a reallocate method that doubles the size of the Transaction array when it becomes full. Methods: getBalance, getCustomer, toString, setCustomer Class SavingsAccount extends Account Methods: deposit, withdraw, addlnterest Class CheckingAccount extends Account Methods: deposit, withdraw, addlnterest Class CustomerData fields: name, address, age, telephoneNumber, customerNumber Methods: Accessors and modifiers for data fields plus the additional abstract methods getSavingslnterest, getChecklnterest, and getCheckCharge. Classes Senior, Adult, Student, all these classes extend Customer Each has constant data fields SAVINGS_INTEREST, CHECK_INTEREST, CHECK_CHARGE, good! and OVERDRAFT_PENALTY that define these values for customers of that type, and each class implements the corresponding accessors. Class Bank Data field: accounts array (type Account []). Allocate an array of a reasonable size (e.g., 100), and provide a reallocate method. Methods: addAccount, makeDeposit, makeWithdrawal, getAccount Class Transaction Data fields: customerNumber, transactionType, amount, date, and fees (a string describing unusual fees) Methods: processTran You need to write all these classes and an application class that interacts with the user. In the application, you should first open several accounts and then enter several transactions.Explanation / Answer
Hi. It can be done. But its too long. What is your deadline? Let me know if I have enough time to finish this.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.