Question: The main method within Driver also needs to instantiate an Account object from the Account class found within the c om . lionbank package. When
The main method within Driver also needs to instantiate an Account object from the Account class found within the c omlionbank package.
When the enduser chooses to deposit, prompt for the amount and call the account object's deposit method passing in the deposit amount Be sure to update the balance within the object. The withdrawal operation is similar, but you must not allow overdrafts. Simply reject the transaction and return The third option requires no input from the user. Instead, it will apply the Account's internal INTERESTRATE to the current balance. Display should use either the two "getters" or a toString method to display the internal state of the object.
You must be able to create an Account object with an id and initial balance or with the id only. You may use an id of initial balance of $ and interest rate of for the example below
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
