Question
Design and implement a set of classes for a bank. Create a UML. The bank has the following four kinds of accounts. All accounts have
Design and implement a set of classes for a bank. Create a UML. The bank has the following four kinds of accounts. All accounts have the following information need to be recorded
name(either a business corporation name or person name), account number( an integer between 10000 to 99999), address, email address, phone, and current balance.
The following table shows for each account how to process transactions.
Business saving | Business checking | Personal checking | Personal saving | |||
Deposit | No fee | No fee | No fee | No fee | ||
Withdraw |
| 10$ fee | No fee |
| ||
Monthly fee | 20$ | 20$ |
|
| ||
Interest | No interest |
| No interest |
|
Each type of account needs to provide methods to chekc the current balance, deposit, and withdraw. Each account needs toprovide a method to apply monthly fee. Saving accounts need to provide a method to add interests. Assume the monthly fee is added at the end of the month, when the fee is added, reset the number withdraw transactions for the personal saving and the amount of the total deposit for personal checking.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started