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]
2 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]2 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
In the us economy the money supply is controlled by the
Evgesh-ka [11]
The money supply is controlled by the Government. Its spending or changing taxes.

Hope this helped. Have a great day! :D
5 0
2 years ago
Assuming a company has no other funding sources other than debt and common equity, what is the difference between enterprise val
lyudmila [28]

Answer:

eat potato bitc 1234567890

3 0
3 years ago
Karl Corporation was organized on January 2, 2018. During 2018, Karl issued 40,000 shares at $24 per share, purchased 6,000 shar
labwork [276]

Answer:

The answer is $1,404,000

Explanation:

Total amount realized from the issuance: 40,000 shares x $24

= $960,000

Treasury stock repurchased:

6,000 shares x $26

=$156,000

Net income = $600,000

The total amount of stockholders' equity at December 31, 2018 is:

Net income + amount realized from issuance - amount of treasury stock

$600,000 + $960,000 - $156,000

$1,404,000

3 0
3 years ago
When you ask questions about the animal's drinking habits, particularly increases and decreases in water consumption, you're col
balandron [24]
The excretory system is related to the increase or decrease in the consumption of water by an animal. The increase or decrease is due to the variation in the antidiuretic hormones in the humans. The retention and excretion of excess water and ions are performed by the kidneys, which is a part of the excretory system. 
7 0
3 years ago
Without a strong legal systems in a market economy:
STALIN [3.7K]

Answer:

<u>A) private-sector entrepreneurs can expropriate the profits generated by the efforts of private and public entities.</u>

Explanation:

  • As there exist four basic structures of the market economy in the form of perfect competition, imperfect competition, oligopoly, and monopoly.  
  • Thus without any legal system of trade in the market economy, the profits that are generated by the public and private sectors can be taken away by these entities as a large number of small firms tends to compete in the market against each other with there homogenous products.
  • Thus under such circumstances, the market economy would deprive all the profits made by the other forms in the market and put barriers to entry for others. Buyers thus will be deprived of the quality products.
5 0
3 years ago
Other questions:
  • A company just starting in business purchased three merchandise inventory items at the following prices. March 2, $150; March 7,
    14·1 answer
  • Scientific and technological advancements in a specific industry as well as in society at large are included in which general en
    8·1 answer
  • During the "night of broken glass" (november 9, 1938 adolf hitler ordered his brown shirts, the hitler youth, and gestapo to des
    15·1 answer
  • Ivan and Olga own a duplex. They collect the rents and make repairs to the property when necessary. That is, they are active par
    14·1 answer
  • Quality Brick Company produces bricks in two processing departments—Molding and Firing. Information relating to the company’s op
    7·1 answer
  • 1. An agency is given detailed authority to issue rules similar to the power of statutes with _____ rule making.
    5·1 answer
  • What is meant by conversational style and is a conversational style  as appropriate in cross-cultural communication as it is in
    7·1 answer
  • St. Augustine Corporation originally budgeted for $360,000 of fixed overhead at 100% of normal production capacity. Production w
    9·1 answer
  • hina's growth rate of real GDP in 2005 and 2006 was 10.5 percent a year and its population growth rate was 0.5 percent a year. I
    10·1 answer
  • There are significant differences between marketing internationally and marketing domestically. quizlet
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!