1 / 4

Introduction to Java

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

aideen
Download Presentation

Introduction to Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Java Classes and Objects Bank Account Program

  2. 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

  3. 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”

  4. 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

More Related