Advertisement
akosiraff

CheckingAccount

Jul 30th, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/checkingaccount/
  3. An account has the properties account number, balance, annual interest rate, and date created, and methods to deposit and withdraw funds. Create two subclasses for checking and saving accounts. A checking account has an overdraft limit, but a savings account cannot be overdrawn. Write a test program that creates objects of Account, SavingsAccount, and CheckingAccount and invokes their toString() methods. The test (main) program should create a SavingsAccount object with ID 1122, a balance of 20000 and an annual interest rate of 4.5%. It should also call the withdraw method to withdraw 5000 and the deposit method to deposit 10000. The account information should be printed after each transaction with the interest computed before the first transaction. The test program should also create a Checking account with ID 1271, a balance of 150, an annual interest rate of 1.25% and an overdraft of 200. A withdrawal of 300 and a deposit of 500 should be processes with the interested credited before the first transaction.
  4. Download: http://solutionzip.com/downloads/checkingaccount/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement