Please Answer The Question Correctly And Completely OR YOU WILL GET DOWNVOTED Draw UML Class Diagram Which Illustrates Your Design Of The Below Problem :
Please Answer The Question Correctly And Completely OR YOU WILL GET DOWNVOTED
Draw UML Class Diagram Which Illustrates Your Design Of The Below Problem :
Consider designing a program for managing different banks data across the country.
A bank has a name and number of branches. Each branch has an address and number of accounts. We have Three types of accounts:
checking, saving and online.
A checking account has an owner, balance (float) and accou fees (float), A saving account has an owner, balance (float) and interest rate (float). An online account has an owner, balance (float) and number of transactions (int).
An owner can have one or more accounts of any type in any number of branches of any banks.
An owner has a name, id and list of accounts.
In the program, it is required that a bank instance can be removed. In such case only branches and accounts of branches should be removed, while owners should still exist.
Checking and saving accounts are chargeable accounts while an online account is not.
A chargeable account is an account in which a tax value can be deducted from its balance.
Saving and online accounts are profitable accounts, while checking account is not. A profitable account is an account which the bank can add certain amount of profit to its balance.
A constant is required in checking class to represent withdraw limit (value 100,000)
A static method is required called calcTaxes in class owner, which receive owner object and returns 5% of the total of his accounts' balances.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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