(Modified Account Class) Modify class Account (Fig.) to provide a method called debit that withdraws money from an Account. Ensure that the debit amount does not exceed the Account’s balance. If it does, the balance should be left unchanged and the method should print a message indicating "Debit amount exceeded account balance." Modify class AccountTest (Fig.) to test method debit.
Fig. | Account class with a constructor to validate and initialize instance variable balance of type double.


Fig. | Manipulating Account objects and validating initializer values.


We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.