a. Step1: Identify the potential classes in this problem domain by listing all t
ID: 3795538 • Letter: A
Question
a. Step1: Identify the potential classes in this problem domain by listing all the nouns in above problem domain
b. Step2: Refine the list to include only the necessary noun on the list to be the name of class or classes for this requirement statement: Remove any noun from the above list that modifies other noun, has the same meaning or does not relate to the problem. For example: between account and customer; it is better if just keep account as a class because the attributes of customers, such as, name, id, address, etc. can be name, id, address of an account.
c. Identify the responsibilities of the class or classes.(list things that the class is responsible for knowing to define fields that is needed to define and list
Look at the following requirement statement: The bank online application offers the following types of accounts to its customers: saving accounts, checking accounts and money market accounts. The application allow users 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 Assume that you are writing an application that will calculate the amount of interest earned for a bank accountExplanation / Answer
Step a: Identifying all the nouns
1. Account
2. Customer
3. Savings Account
4. Checking Account
5. Money Market Account
6. Balance
7. Interest Rate
Step b: Refining the nouns by removing nouns that modify others
1. Customer
2. Savings Account
3. Checking Account
4. Money Market Account
Step c : Responsibilities of each class
Customer Class:
Savings Account:
Checking Account:
Money Market Account:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.