Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

No fee for the amount not greater than 10,000; otherwise 10$ fee

10$ fee No fee

No fee for the first 5 withdraw transactions for each month; then 5$ for each withdraw transaction.

Monthly fee 20$ 20$

10$. Fee can be waived if the total deposit amount of this month is more than 500$.

20$. Fee can be waived if the current balance is more than 3000$

Interest No interest

2.5% monthly. That is, each month add 2.5% of the current balance to balance.

No interest

3% monthly. That is, each month add 3% of the current balance to balance.

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago