Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/account-java/
- EX. 7.11 (Modified Account Class) Modify class Account (fig.7.7) 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 exceeds account balance.” Modify class AccountTest (Fig 7.8) to test method debit.
- Download: http://solutionzip.com/downloads/account-java/
Advertisement
Add Comment
Please, Sign In to add comment