ns: Create a folder and name it Bank Account. Save all your files to the created folder. Methods definitions: deposit method make deposit into account Note: be sure the amount to be deposited is not less than zero withdraw method make withdrawal into the account this method returns false is current balance is less than the amount to be withdrawn and it returns true if there is enough balance and subtracts amount withdrawn with balance fundTransfer method transfers an amount to another account credits the amount to the account being transferred and debit to the account who transferred the amo

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

General Instructions: Create a folder and name it Bank Account. Save all your files to the created folder.

Methods definitions:

  • deposit method
    • make deposit into account
    • Note: be sure the amount to be deposited is not less than zero
  • withdraw method
    • make withdrawal into the account
    • this method returns false is current balance is less than the amount to be withdrawn
    • and it returns true if there is enough balance and subtracts amount withdrawn with balance
  • fundTransfer method
    • transfers an amount to another account
      • credits the amount to the account being transferred and debit to the account who transferred the amount
    • calculateInterest
      • compute for the annual interest of an account and update the new balance
    • cashCheck
      • cash check and debit balance
        • use the attribute of class CheckingAccount
        • the attribute minimum
          • per check charge added if bal < minbal
        • the attribute charge
          • amount charged per check when bal < minbal

 

Additional requirements:

  • getter and setters in each classes
  • override the toString method
  • provide another class that test your Savingsaccount and CheckingAccount classes
    • your test program must:
      • create 2 objects for Savings and 1 object for checking
      • perform a debit and credit for saving (Savings and and Checking)
      • transfer funds from objectA to objectB (Savings)

·         Note: (For further clarifications)

  • For cash check – payee is whom you issue the check. Cash check is only allowed if there is enough money in the
  • Minimum – maintaining balance of the checking account. There is a charge if balance is less than the maintaining
BankAccount
AccountNumber
AccountName
balance
Bank Account()
BankAccount(String acctNum,String acctName,double balance)
deposit(double amount)
boolean withdraw(double amount)
void fundTransfer(BankAccount obj, double amount)
CheckingAccount
SavingsAccount
minimum
interestRate
charge
CheckingAccount()
CheckingAccount(String acctNum,String acctName,
SavingsAccount()
SavingsAccount(String acctNum,
String acctName,
double balance, double interest)
double balance, double minimum, double
charge)
void cashCheck(String payee, double amount)
void calculatelnterest()
Blue-Class name
Yellow - Attributes
Drdngemothods
Transcribed Image Text:BankAccount AccountNumber AccountName balance Bank Account() BankAccount(String acctNum,String acctName,double balance) deposit(double amount) boolean withdraw(double amount) void fundTransfer(BankAccount obj, double amount) CheckingAccount SavingsAccount minimum interestRate charge CheckingAccount() CheckingAccount(String acctNum,String acctName, SavingsAccount() SavingsAccount(String acctNum, String acctName, double balance, double interest) double balance, double minimum, double charge) void cashCheck(String payee, double amount) void calculatelnterest() Blue-Class name Yellow - Attributes Drdngemothods
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 1 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education