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
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
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
- cash check and debit balance
- transfers an amount to another account
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)
- your test program must:
· 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
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education