Question: a ) Create a package called banking that will be used to store classes for Banking applications. b ) Create a class called CheckingAccount that
a Create a package called "banking" that will be used to store classes for Banking applications.
b Create a class called "CheckingAccount" that will be used to store a user's bank account information including their name and balance of money.
c Create the following data fields:
"name" of type String.
"balance" that is a double precision floating point number.
d Create the following functions within "CheckingAccount":
"deposit" that updates the balance after the added amount.
"withdraw" that updates the balance after the deducted amount.
e Other Information
mathrmA$ transaction fee is deducted every time you make a withdrawal from this account.
The account must ensure that the account cannot go negative and should decline any withdrawal, if this would make the account negative.
f Create a program that prints out the contents of three clients
i Alan, $
ii Barbara, $
iii. Carl, $
g Show the results of the three accounts after Alan gives Barbara $ and Carl $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
