introduction to java classes and objects bank account program

4
Introduction to Java Classes and Objects Bank Account Program

Upload: carmella-nash

Post on 02-Jan-2016

228 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Introduction to Java Classes and Objects Bank Account Program

Introduction to Java

Classes and ObjectsBank Account Program

Page 2: 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

Page 3: Introduction to Java Classes and Objects Bank Account Program

• 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”

Page 4: Introduction to Java Classes and Objects Bank Account Program

Account

ownerbalanceacctNumbertransactions

depositwithdrawgetAcctNumbergetBalancegetOwnerFirstNamegetTransactions

Person

fNamelName

getFirstNamegetLastName

Bank

accounts

openAccountdepositwithdrawgetBalancegetTransactionsopenBankcloseBank

*