akosiraff

Bank System JAVA

Oct 29th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/bank-system-java/
  3. Write the application BankSystem_YourLastName for the bank service. The application should display the following menu to allow users to do the following tasks:
  4. 1. Open new account
  5. 2. Current Balance
  6. 3. Deposit
  7. 4. Withdrawal
  8. 5. Change Interest Rate
  9. 6. Bank statement
  10. 7. Exit
  11. The users can select one task to do the service. After finishing one task, the application will display the menu again to allow users to continue to work other tasks. The application only terminates when users want to exit.
  12. For each task, the application will do the following:
  13. Open new account:
  14. -Display the message to ask users to provide the following information: account number, name, and amount of money to start the account. If the money to start the account is less than 100, display the message “The minimum amount to open a new account should be $100”
  15. -After read all information, create an account object to pass all the information to the object then display the message as follows; the example with account number = 12345, name = “Annie Hogan”, amount to start = $200
  16. ————————————————
  17. New Account:
  18. Account Name = Annie Hogan
  19. Account Number = 12345
  20. Start Balance = $200.00
  21. ————————————————
  22. Current Balance: read and display the current balance as the following format, for example
  23. ———————————————
  24. Check Balance:
  25. Account Name = Bill Jones
  26. Account Number = 11111
  27. Current Balance = $2200.00
  28. ———————————————
  29. Deposit: ask and read the amount of money to deposit, re-calculate the balance by adding the deposit amount to the current balance, for example:
  30. ———————————————
  31. Deposit:
  32. Account Name = Alec Goel
  33. Account Number = 54321
  34. Deposit = $100.00
  35. New Balance = $1300.00
  36. ———————————————
  37. Withdrawal: ask and read the amount of money to withdraw. Withdrawing is denied when the balance < withdraw amount + $25. Otherwise, recalculate the balance by subtracting a withdraw amount from the balance.
  38. If withdraw is denied, print out the message:
  39. ————————————————————————————–
  40. Withdrawal:
  41. Account Name = Gary Berg
  42. Account Number = 22222
  43. Withdraw money = $50 – Denied
  44. New Balance = $60
  45. —————————————————————————————
  46. If withdrawal is successful, print out the following:
  47. ————————————————
  48. Withdrawal:
  49. Account Name = Steward Lee
  50. Account Number = 33333
  51. Withdraw = $100.00
  52. New Balance = $2300.00
  53. ———————————————
  54. Change Interest Rate: display message to ask and read the new interest rate, then set the new interest rate to the interest rate and display the change
  55. ————————————————-
  56. Change Interest Rate:
  57. Account Name = Relay Clinton
  58. Account Number = 44444
  59. New Interest Rate = .005%
  60. ———————————————
  61. Bank statement: calculate the interest amount based on the balance by using the formula: balance * interest rate / 100, the calculate the new balance: balance = balance + interest amount and print out the account information as the following format:
  62. ———————————————
  63. Account Name = Mary Lane
  64. Account Number = 55555
  65. Balance = $2300.00
  66. Interest (.05% ) = $1.15
  67. New Balance = $2301.15
  68. ———————————————
  69. HOW TO DO THE LAB:
  70. -Create the class named BankAccount_yourLastName that holds accountName, accountNumber, balance, interestRate and have constructor and all the methods that support for each requested tasks.
  71. -Create the controlling class named BankSystem_yourLastName that contains the method main to hold all the interaction between the application and the users as requested above
  72. Notes:
  73. -When users select one task from 2 to 6 but the account does not exist, the application will display the message to warn users to open the new account first. To do this, before display the menu, declare an object of BankAccount and assign it to null. Anytime the users select the option from 2 to 6, check if the object of BankAccount is not null to continue because if the object of BankAccount goes through the Create- new- account task, it is created with the requested information passing to the object. Therefore, the object would not be null
  74.  
  75. Download: http://solutionzip.com/downloads/bank-system-java/
Add Comment
Please, Sign In to add comment