1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Liono4ka [1.6K]
4 years ago
8

Look at the following description of a problem domain:The bank offers the following types of accounts to its customers: saving a

ccounts, 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 rateAssume that you will write the code for an application that will calculate the amount of interest earned for a bank account.Use word document to answer the following questions:1) Identify the potential classes in this problem domain be list all the nouns2) Refine the list to include only the necessary class names for this problem3) Identify the responsibilities of the class or classes.
Computers and Technology
1 answer:
Alchen [17]4 years ago
5 0

Answer:

The answers are explained below

Explanation:

1) Identify the potential classes in this problem domain be list all the nouns

class Customer

class Acco  unt

2) Refine the list to include only the necessary class names for this problem

the class customer is not necessary to solve the problem itself, therefore the only class could be the account class

3) Identify the responsibilities of the class or classes.

The responsibilities of the class account will be

* determination of the type of account--> Acc  ount . type(char)

*  deposit money into the account --> Acc  ount . de posit(float)

* withdraw money into the account --> Acc  ount . with draw(float)

* show balance of the account --> Acc  ount . bal ance()

* generate interest --> Acc  ount . int erest()

Please join the words together. I used spaces due to regulations

You might be interested in
Assume that scotus is a two-dimensional character array that stores the family names (last names) of the nine justices on the Su
dangina [55]

Answer:

for (int i = 0; i < 9; ++i) {

int k = 0;

while (k < 20 && scotus[i][k] != '') {

cout << scotus[i][k];

k++; }

cout << "\n"; }

Explanation:

scotus here is a two dimensional array. It contains names of 9 justices. so the loop starts from 0 and ends when i points to the last name element in the array. Then a while loop is used to check that name is longer than twenty characters and will keep on printing each output on the separate line.

Another way to write this:

for (int i = 0; i < 9; i++){

cout << scotus[i] << "\n"; }

This loop will keep on executing and printing the names of the nine justices at every iteration until it reaches the end of the array (last element of the array scotus).

5 0
3 years ago
_____ are likely to support bigger government, social welfare programs, and legalized abortion.
Amanda [17]
Democrats are likely to support bigger government, social welfare programs, and legalized abortion.
8 0
3 years ago
Read 2 more answers
What is a peripheral device?
saul85 [17]

Answer:

a peripheral device is a device used to put information into as well as get information out of a computer

Explanation:

4 0
3 years ago
What role do visual merchandisers play on the marketing team
almond37 [142]

They are responsible for the total merchandise or service presentation, the overall business/brand image, and even the building and placement of design elements.


8 0
3 years ago
With all of the digital data being collected today the size and number of databases are exploding. this volume of data is often
miss Akunina [59]

With all the digital data being collected today, the size and number of databases are exploding. This volume of data is often called blank big data.

<h3>What is digital data?</h3>

Digital data is the form of data that is digitalized or in digital form. These data are stored in memory cards or chips in the devices. This information is in the form of encryption codes.

The data from human language is converted into computer language. The computer language is in the form of binary codes. The form is 100101010. The language is understood by the computer.

Thus, the volume of data is often called blank big data.

To learn more about digital data, refer to the link:

brainly.com/question/21090939

#SPJ4

7 0
1 year ago
Other questions:
  • Is a type of software program used to write code and develop other
    9·1 answer
  • OSHA has authority over the employers of
    5·2 answers
  • Rich Text Format (RTF) is a universal file format that can include information such as text style, size, and color and can be re
    12·2 answers
  • The data manipulation language (DML) of SQL contains SELECT, INSERT, DELETE, and UPDATE statements, whereas the data definition
    12·1 answer
  • What nuclear remediation site had their computers wiped clean by notpetya?
    15·1 answer
  • What is the root of the tree?
    6·1 answer
  • PLEASE HELP!!! WILLGIVE BRAINLIEST!!!
    11·2 answers
  • (20points)
    6·1 answer
  • What is a computer system model and explain?
    10·1 answer
  • David is preparing a report to show the percentage increase in population in the United States in the last five years. Which fea
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!