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
Mkey [24]
3 years ago
6

Create a Painting class that holds the painting title, artist name, and value. All Paintings are valued at $400 unless they are

FamousPaintings. Include a display function that displays all fields. The FamousPainting subclass overrides the Painting value and sets each Painting’s value to $25,000.
Business
1 answer:
AlexFokin [52]3 years ago
6 0

Answer:

#include<iostream>

#include<string>

#define N 10

#define M 4

using namespace std;

class Painting

{

protected:

string title;

string author;

int value;

public:

Painting(string Title="", stringAuthor="",int Value=400) {title=Title;author=Author;value=Value;}

void setTitle(string newTitle){title=newTitle;}

void setAuthor(string newAuthor){author=newAuthor;}

void display() {cout<<"Title:"<<title<<endl; cout<<"Author:

"<<author<<endl<<"Value:

"<<value<<endl;}

};

class FamousPainting:public Painting

{

public:

FamousPainting(string Title, stringAuthor, int Value=25000): Painting(Title,Author,Value){}

};

int main()

{

Painting *paintings=new Painting[N];

stringfamous[M]={"Degas","Monet",

"Picasso","Rembrandt"};

string title, author;

int i,k,j;

for(i=0;i<N;i++)

{

cout<<"Input title: ";

getline (cin, title);

cout<<"Input author: ";

getline (cin, author);

k=-1;

for(j=0;j<M;j++)

if(famous[j]==author)

{

k=j;

break;

}

if(k>=0)

paintings[i]=FamousPainting(title,author);

else

paintings[i]=Painting(title,author);

}

for(i=0;i<N;i++)

{

cout<<"Painting#"<<i<<":"<<endl;

paintings[i].display();

}

return 0;

}

Explanation:

You might be interested in
Describe the main differences for revenue spending between ""for profit"" companies and ""not for profit"" companies. Describe h
LenKa [72]

Answer with Explanation:

<h2><u>Requirement 1:</u> </h2>

1. Profit Organization

The aim of profit organization is to maximize the wealth of shareholders by increasing its profits. The owners of the company get dividends and appreciation in the value as a return from the company.

2. Nonprofit Organization

The primary mission of Non-profit organization is to benefit the community by helping them and the earnings generation is not the primary goal of the company. ACCA is an entity that delivers quality education to its students and also earns profit on it but the profit margin kept is as low as possible to keep its operation running. Other examples are Rolex, NGO's, National Health Institutes, etc.

In other words, these institutes are for charitable purpose and their primary objective is not making profits.

Key Difference Between Profit Organization and Non-profit Organization​​​​​

  • A profit organization's primary objective is to maximize profits whereas the Non profit organizations work for delivering services and products that helps in uplifting the society from their donations.
  • A profit organization is registered as a sole proprietorship or partnership or a corporation. Whereas Non profit organization is registered as a charity club, association of person, trust, corporations, etc.
  • Usually major source of income of Non profit organization comes from donations, government and corporation grants, subscriptions, etc. Whereas the major source of profit organization is income generated from the sale of goods and services. Non profit organization - the major incomes are donation, grant, legacies, subscription, etc.

Requirement 2:

Profit making organization have to publish all financial statements which includes income statement, balance sheet, cash flow statement, statement of changes in equity, etc whereas the non profit organization only publishes balance sheet and cash flow statement. If the Non profit organization is involved in selling of products and services then the organization will also have to prepare income statement.

The non profit organization doesn't pays andy dividends as it is a charity firm and all it does is, it spends it money for the welfare of the community. Whereas the profit organization have to retain a share of earned profits and then distributes the remainder to shareholders.

The profit making organization publishes changes in equity statement whereas the charitable firm is not required to publish such things because its primary objective is to spend on the welfare of the community.

8 0
3 years ago
Nature of Transactions Kristoff Walker operates his own catering service. Summary financial data for February are presented in e
vichka [17]

Answer:

A. Description for :

Transaction 1 - Provided catering service for cash

Transaction 2 - Purchase of land for cash

Transaction 3 - Payment of cash for expenses

Transaction 4 - Purchase of supplies on account

Transaction 5 - Withdrawal of cash by owner

Transaction 6 - Payment of cash to creditors

Transaction 7 - Recognition of cost of supplies used

B. The amount of the net decrease in cash during the month = 13,900

C. The amount of the net increase in owner's equity during the month = 3700

D. The amount of the net income for the month = 5500

E. The net income for the month was retained in the business = 3700

Explanation:

a)

Description for :

Transaction 1 - Provided catering service for cash

Transaction 2 - Purchase of land for cash

Transaction 3 - Payment of cash for expenses

Transaction 4 - Purchase of supplies on account

Transaction 5 - Withdrawal of cash by owner

Transaction 6 - Payment of cash to creditors

Transaction 7 - Recognition of cost of supplies used

b.)

Net decrease = Closing Balance - opening Balance

                        = 27,600 - 13,700

                        = 13,900

⇒The amount of the net decrease in cash during the month = 13,900

c.)

Net increase in owner's equity = ( Opening capital balance - Drawing + Income earned during the year - Expenses incurred during the year ) - Opening capital

⇒Net increase = ( 92,700 - 1800 + 32,300 - 26,800 ) - 92,700

                         = 96,400 - 92,700 = 3700

⇒The amount of the net increase in owner's equity during the month = 3700

d.)

Amount of the net income for the month = Total Income - Expenses

                                                                    = 32,300 - 26,800

                                                                     = 5500

⇒Amount of the net income for the month = 5500

e.)

Net income for the month was retained in the business = Net Income - Drawings

⇒Net income was retained in the business =  5500 - 1800

                                                                         = 3700

⇒Net income for the month was retained in the business = 3700

7 0
3 years ago
Carlos is a hard-working college senior. One Saturday, he decides to work nonstop until he has answered 100 practice problems fo
SVETLANKA909090 [29]
The answer is D because 4 hours working on problems are 0 hours of reading
3 0
3 years ago
A firm with unlimited funds must evaluate five projects. Projects 1 and 2 are independent and Projects 3, 4, and 5 are mutually
neonofarm [45]

Answer:

4, 1, 2,

Explanation:

Here are the projects and their returns

Project Return (%)

1 14

2 12

3 10

4 15

5            12

the firm should choose the project with the highest returns

Projects are mutually exclusive if the projects cannot occur at the same time. If one project is chosen, the others cannot be chosen.

Project 3,4,5 are mutually exclusive. If one of the projects are chosen, other projects cannot be chosen.

Project 4 has the highest return, so it would be chosen first.

the next project with the next highest return is project 1 and then project 2

3 0
3 years ago
Analytic communicator
forsale [732]

Answer:

A personal meeting

Voice mail

Explanation:

Though various means of reaching through to individuals differ, however, depending on the gravity or severity of the information to be communicated, you be might be forced to make a somewhat crude means of communication. However, when informations require the passage of specific illustrations and also to show how important the information that is about to be passed on his.organizing a personal meeting might be more satisfactory. However, in many instances, do stance posses a barrier and another means of communication whereby distance doesn't pose a threat may need to be adopted . This include text messages. Emails

voice mails and so on.

8 0
3 years ago
Other questions:
  • A city engineer knows that she will need $25 million in 3 years to implement new automated toll booths on a toll road in the cit
    6·1 answer
  • In 2009 and 2010 Toyota had to recall millions of automobiles due to uncontrollable acceleration. This recall forced upper-level
    7·1 answer
  • Suppose the economy is producing at the natural rate of output. Assuming a fixed natural rate of output and everything else held
    10·2 answers
  • Choose all that apply. Reliable financial information includes _____.
    9·1 answer
  • Compute net sales, gross profit, and the gross margin ratio for each separate case a through d. (Round gross margin ratio to 1 d
    9·1 answer
  • Burger Store is located near many large office buildings, so at lunch it is extremely busy. Burger Store management previously p
    15·1 answer
  • A diesel-powered tractor with a cost of $208,140 and an estimated residual value of $2,700 is expected to have a useful operatin
    6·1 answer
  • You have funds that you want to invest in bonds, and you just noticed in the financial pages of the local newspaper that you can
    11·1 answer
  • In November 2017, Treasury 4 5/8s of 2042 offered a semiannually compounded yield to maturity of 2.62%. Recognizing that coupons
    15·1 answer
  • Please help
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!