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
Falcon Co. produces a single product. Its normal selling price is $26 per unit. The variable costs are $16 per unit. Fixed costs
xxTIMURxx [149]

Answer:

Effect on income= $10,290 increase

Explanation:

Giving the following information:

Falcon can handle the special order, and for this order, a variable selling cost of <u>$2 per unit would be eliminated.</u>

<u>Because it is a special order that would not affect current sales, we won't take into consideration the fixed costs.</u>

<u></u>

<u>To calculate the effect on income, we need to use the following formula:</u>

Effect on income= Number of units sold*unitary contribution margin

Effect on income= 1,470*(21 - 14)

Effect on income= $10,290 increase

6 0
3 years ago
Forever Jewelers uses the perpetual inventory system. On April​ 2, Forever sold merchandise with a cost of $ 1 comma 500$1,500
Tema [17]

Answer:

Accounts Receivable $8,820

                   To Sales Revenue $8,820

Explanation:

The journal entry to record the sales revenue is shown below:

Accounts receivable A/c Dr $8,820

      To Sales revenue A/c $8,820

(Being merchandise sold on credit basis)

For recording this we debited the account receivable as it increased the assets and credited the sales revenue as it also increased the revenue

The computation of sales revenue is shown below:

= Sales revenue - discount

= $9,000 - $9,000 × 2%

= $9,000 - $180

= $8,820

This is the answer but the same is not provided in the given options

6 0
3 years ago
Believing that you can accomplish something is an example of which stress reducing asset? A) boundaries. B) empowerment. C) posi
Eduardwww [97]

I will choose letter c. positive values.  When you believe that you can do something that you feel positive about yourself and you are capable of doing it.  When you believe it can happen then you feel good about yourself and it greatly relieves stress.

3 0
3 years ago
Read 2 more answers
How to calculate the probablility that 2 or more people in a group have the same birthday?
Helen [10]
Check this link it should be a great help http://mathforum.org/dr.math/faq/faq.birthdayprob.html
8 0
3 years ago
Which hr competency refers to the ways hr employees guide others in the organization?
Kazeer [188]

The HR consultation is the branch of Hr competence which refers to the ways hr employees guide others in the organization.

<h3>What is an HR consultation?</h3>

This refers to the practice of delivering all aspects of human resource management as an external provider including client development, contracts and client management.

Therefore, the HR consultation is the branch of Hr competence which refers to the ways hr employees guide others in the organization.

Read more about HR consultation

brainly.com/question/14866353

#SPJ1

8 0
2 years ago
Other questions:
  • Without uttering a word, an audience can be quieted by holding up the palm of your hand to calm a noisy crowd. this is the nonve
    13·1 answer
  • Richard is a secondary science teacher at a Catholic High School. He has worked there for three years. When he was first intervi
    14·1 answer
  • Monetary policy has a​ ________ effect on aggregate demand in​ a(n) ________​ economy, and fiscal policy has a​ ________ effect
    11·1 answer
  • Which of the following charts would be best to draw out the movement of people or material?
    11·1 answer
  • For higher levels of management, responsibility accounting reports:
    13·1 answer
  • Why would expanding the nation's communications network be considered an increase in wealth, while improving the education of it
    5·1 answer
  • Which of the statements correctly represents the accounting equation?
    9·1 answer
  • A printer used 1890 digits to number all the page. How many pages in the book
    13·1 answer
  • When a firm goes bankrupt, shareholders ______. Multiple choice question. can sue for loses cannot recover their risk capital ar
    11·1 answer
  • A firm has total debt of $1,380 and a debt-equity ratio of .23. what is the value of the total assets?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!