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:
1. "name" of type String.
2. "balance" that is a double precision floating point number.
d) Create the following functions within "CheckingAccount":
1. "deposit" that updates the balance after the added amount.
2. "withdraw" that updates the balance after the deducted amount.
e) Other Information
1.\(\mathrm{A}\$ 1.00\) transaction fee is deducted every time you make a withdrawal from this account.
2. 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, \(\$ 1300.00\)
ii. Barbara, \(\$ 850.00\)
iii. Carl, \$500.00
g) Show the results of the three accounts after Alan gives Barbara \$275.00 and Carl \$150.00.
a ) Create a package called "banking" that will

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!