Simple Banking Application with Java Classes and Objects
40 likes | 174 Views
Develop a straightforward banking application using Java that allows customers to manage their bank accounts. Features include the ability to open accounts, deposit money, withdraw funds, check account balances, and view transaction histories. The application supports multiple accounts with distinct owners, facilitating transactions through account numbers. Customer interactions begin with a personalized greeting and are only conducted during banking hours. Account data is securely saved to "data.txt" when the bank closes and read from it when the bank reopens.
Simple Banking Application with Java Classes and Objects
E N D
Presentation Transcript
Introduction to Java Classes and Objects Bank Account Program
Write a simple banking application that allows bank customers • Open accounts • Deposit money into their accounts • Withdraw money from their accounts • Check their account balance • View their account transactions • The bank can have many accounts • Each account has one owner • For a transaction, the owner only provides his/her account number, and the type and the amount of the transaction • After the account is provided, the bank greets the customer with his/her first name
The bank conducts business only when it is open • When the bank closes, all the account information is written to the file, “data.txt” • When the bank opens, all the account information is read from the file, “data.txt”
Person fName lName getFirstName getLastName Account owner balance acctNumber transactions deposit withdraw getAcctNumber getBalance getOwnerFirstName getTransactions * Bank accounts openAccount deposit withdraw getBalance getTransactions openBank closeBank