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
A person who produces work in the vernacular is one who
balu736 [363]
Writes in their own language as used colloquially.
4 0
3 years ago
The financial reporting for private not-for-profit entities primarily focuses on: Multiple Choice basic information for the orga
Romashka [77]

Answer: basic information for the organization as a whole.

Explanation:

Private Not-for-profit organization as the term implies, are not operating to make a profit therefore their financial statements will generally not include measures that are aimed at showing profit like profit making organizations.

They will instead focus on talking about the entire organization as whole and what it has done so far in the current period. This is what is required of them by U.S. GAAP.

7 0
3 years ago
Like many other marketing strategy specialists, Mike relies heavily on creativity and originality. Members of his team are selec
damaskus [11]

Answer:

<u>Brainstorming.</u>

Explanation:

The situation exposed in the question above is an example of brainstorming, which can be defined as a group dynamics technique where there is the generation of ideas for a given project.

This activity is developed with the main objective of exploring the creative and innovative capacity of an individual or a group, stimulating the team's creativity, collecting ideas and the maximum amount of information, visions and possibilities in order to achieve a determined objective.

8 0
3 years ago
Give 3 examples of showing self-respect? ​
Scilla [17]
1. Not letting people talk down about you. 2. Not talking down about yourself. Respect other people, if you can’t respect them.. how can you respect yourself ?
6 0
3 years ago
Fortunately, those who survive company layoffs rarely exhibit negative behaviors (such as decreased productivity or low morale).
Komok [63]

Answer:

The correct answer is letter "B": False.

Explanation:

Company layoffs not only represent a problem to the workers not working anymore for the firm but also to those who keep the job. Layoffs, in general, create uncertainty within a company because the remaining workers typically tend to believe sooner or later they will be laid off as well. Low esteem, engage with the company, and productivity is the result of this scenario.

6 0
3 years ago
Other questions:
  • Roles that are concerned specifically with the activities that need to be carried out for the group to accomplish its goals are
    6·1 answer
  • Which of the following describes the expected outcome of expansionary monetary policy in the short run?
    14·1 answer
  • Accrual accounting requires that the cost associated with the failure of credit customers to pay their bills should be recorded
    14·1 answer
  • A process that produces computer chips has a mean of .04 defective chip and a standard deviation of .003 chip. The allowable var
    8·1 answer
  • Lawrence has set a personal goal of being president of LMN Corp. by the time he is 30. He has determined that nothing will stand
    13·1 answer
  • Universal Exports is expected to pay the following dividends over the next four years: $8, $4, $2, and $2. Afterwards the compan
    14·1 answer
  • Bob sold securities in Year 1. The sales resulted in a capital loss of $7,000. He had no other capital transactions. He and his
    10·1 answer
  • Warren Supply Inc. is evaluating its capital budget. The company finances with debt and common equity, but because of market con
    8·1 answer
  • Determine whether each of the following goods is a private good, a public good, a common resource, or a club good. Private Good
    5·1 answer
  • The exchange gain or loss on repatriated funds from a foreign branch is calculated by multiplying the nominal amount of the fund
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!