The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:Elementary,Middle School,High School,College,University,PHD
MBA IT, Mater in Science and Technology Devry Jul-1996 - Jul-2000
Professor Devry University Mar-2010 - Oct-2016
Implement a class Bank. This bank has two objects
of the type
Account
that was developed in the preceding exercise.
Implement four instance methods:
deposit(double amount, String account) withdraw(double amount, String account) transfer(double amount, String account) printBalances()
Here the account string is
"S"
or
"C"
. For the deposit or withdrawal, it indicates which account is affected. For a transfer it indicates the account from which the money is taken; the money is automatically transferred to the other account.
-----------