Question

In: Computer Science

Look at the following description of a problem domain: • The bank offers the following types...

Look at the following description of a problem domain: • The bank offers the following types of accounts to its customers: savings accounts, checking accounts, and money market accounts. • Customers are allowed to deposit money into an account (thereby increasing its balance), withdraw money from an account (thereby decreasing its balance), and earn interest on the account. • Each account has an interest rate. 6-72 Object Oriented Design Finding Classes and Their Responsibilities Assume that you are writing an application that will calculate the amount of interest earned for a bank account. a) Identify the potential classes in this problem domain. b) Refine the list to include only the necessary class or classes for this problem. c) Identify the responsibilities of the class or classes. d) Design the UML diagram.

Solutions

Expert Solution

a) The potential classes for the problem are as follows :

1. Bank Class

2. Customer Class

3. Accounts Class

4. Customer Class

5. Address Class

6. Balance Class

7. Savings Account Class

8. Money Market Class

9. Deposit Class

--------------------------------------------------------------------------------------------------------------------------------------

b) Necessary Classes

1. Bank Class

2. Customer Class

3. Accounts Class

--------------------------------------------------------------------------------------------------------------------------------------

c) UML Diagram is as follows :


Related Solutions

Description of problem domain: the customer goes to the car dealer to purchase a car. First,...
Description of problem domain: the customer goes to the car dealer to purchase a car. First, the customer works with the salesperson who lists available cars from the dealer’s stock. If the customer selects a car, he may test-drive the car. If he feels satisfied with the car, he will negotiate the price with the salesperson. The customer may bring his old vehicle for trade-in. If the customer and the salesperson agree upon the final price (including the trade-in price...
What is the definition of a professional look? Provide a description of a professional look for...
What is the definition of a professional look? Provide a description of a professional look for a job interview. (like clothing and how you can achieve it). What to avoid?
Objective: Identify the various types of software requirements from problem statements. Problem Description: In this experiment...
Objective: Identify the various types of software requirements from problem statements. Problem Description: In this experiment the students will learn how to identify functional and non-functional requirements from a given problem statement. Functional and non-functional requirements are the primary components of a Software Requirements Specification (SRS). Expected Outcome: After completing this exercise, the students will be able to: ● Identify ambiguities, inconsistencies and incompleteness from a requirements specification. ● Identify and state functional requirements. ● Identify and state non-functional requirements....
The loan department of a bank offers 3 different types of loans: signature, mortgage, and commercial....
The loan department of a bank offers 3 different types of loans: signature, mortgage, and commercial. The following cost and activity estimates are available for the upcoming year: Activity Activity Cost Activity Driver Answering customer questions $ 35,000 customer inquiries Filling out loan application     60,000 pages Loan application processing     30,000 data entry hours Loan analysis & evaluation   100,000 loan dollars Preparation of loan checks     28,000 checks prepared Posting of loan payments     42,000 checks received Total $295,000 The following activity driver...
Bank A offers a savings account with interest rate of 2% compounded quarterly. Bank B offers...
Bank A offers a savings account with interest rate of 2% compounded quarterly. Bank B offers a savings account with interest rate of 2.25% compounded semi-annually. Assume customer can deposit $5,000 and leave it on deposit for 4 years. What would be the final value for each bank account?
You borrow 90,000€ from the bank. The bank offers the following conditions: r12:9%; n=10years; and the...
You borrow 90,000€ from the bank. The bank offers the following conditions: r12:9%; n=10years; and the loan is to be paid back in constant monthly payments. You agree on a waiting period for the first year. Find the payments.
Provide a description and an example of a realistic situation using each of the following types...
Provide a description and an example of a realistic situation using each of the following types of attention. Your examples should include names and a scenario for each (i.e., you will provide a short story for each). Selective Attention Controlled processing Automatic processing Vigilance Cocktail party phenomenon Divided Attention
Find the annual percentage yield​ (APY) in the following situation. A bank offers an APR of...
Find the annual percentage yield​ (APY) in the following situation. A bank offers an APR of ​4.5% compounded daily.
Dunwoody Bank offers 1.8% interest compounded monthly. Chamblee Bank offers 2.2% interest compounded quarterly. A client...
Dunwoody Bank offers 1.8% interest compounded monthly. Chamblee Bank offers 2.2% interest compounded quarterly. A client wants to deposit $10,000 for 3 years and get the better return on his deposit. Calculate the return each bank would give on his deposit so the client can decide which will be better for him
The National Bank of Wynona offers two types of savings account. The Top-Up-N-Saver account pays 2.5%...
The National Bank of Wynona offers two types of savings account. The Top-Up-N-Saver account pays 2.5% annual compound interest, whereas the Super-Saver account pays 3% annual simple interest. If we put in $1,000 now and leave the money in the bank account for 10 years, which account would pay the most interest (and how much more)? Select one: a. The Top-Up-N-Saver account would pay $19.92 more in interest. b. The Top-Up-N-Saver account would pay $50 more in interest. c. The...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT