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
Eight years ago you purchased an asset for $100,000 that has yielded a nominal capital gain of $30,000. If you sold the asset to
xz_007 [3.2K]

Answer: $8,400

Explanation:

Tax liability for a year is computed on the nominal capital gain as of that year not the inflation-adjusted gain. As such, should the asset be sold today, the capital gains tax of 28% will be computed on the capital gain of $30,000 in the following manner;

= 28% * 30,000

= $8,400

5 0
3 years ago
Categories of manufacturing costs include ______. Multiple select question. direct labor manufacturing overhead direct materials
Luda [366]

Firms do create goods. Categories of manufacturing costs include direct labor, direct materials and manufacturing overhead.

<h3>What are manufacturing costs?</h3>

Manufacturing costs is grouped into materials, labor, and overhead. They are kinds of  direct costs.

Manufacturing cost is known to be the amount of costs of all resources taken into the process of creating a product. The manufacturing cost is grouped into three categories called: direct materials cost, direct labor cost and manufacturing overhead.

Learn more about manufacturing costs  from

brainly.com/question/13767214

4 0
2 years ago
10. A country would place a tariff on imported steel to A. increase the standard of living for all citizens in the country. B. m
vagabundo [1.1K]
C is correct.
As a result of a tariff, prices for domestic steel consumers go up so D is false. Option B is false because it does not make the market fair for everyone as now domestic producers can charge a higher price since foreign competition is being excluded. Since B, D are false it would make sense that A is also untrue as consumers are now suffering while it is the producers who benefit. 
5 0
3 years ago
Read 2 more answers
A tenant still has five months remaining on a one-year apartment lease. When the tenant moves to another city, the tenant transf
Leno4ka [110]

Answer:

It would be B a sublessor

8 0
2 years ago
Assuming an upward-sloping as curve, if an economy is at full employment and consumption spending decreases while all other leve
Yuliya22 [10]

Assuming an upward-sloping as curve, if consumption spending falls while all other levels of expenditure stay the same in an economy that is at full employment, a GDP gap will be visible.

Retail store managers will take activities that result in greater Unemployment when undesirable inventories build up.

<h3>What is GDP?</h3>
  • Gross domestic product (GDP) is a monetary indicator of the total market worth of all the finished products that nations create over a certain time period.
  • This measurement is frequently changed before it can be trusted as an indicator because of how complicated and subjective it is.
  • Consumption, investment, government spending, exports, and imports make up the components of the GDP when it is calculated using the expenditures method.
  • Gross fixed capital formation, changes in inventories, changes in consumption expenditure (by households, NPISHs, and general government),
  • And exports of goods and services are all included in the calculation of gross domestic product (GDP), which is then subtracted from imports of goods and services.

Learn more about GDP here:

brainly.com/question/15682765

#SPJ4

8 0
1 year ago
Other questions:
  • Filter the data in place so that only rows where the category value is meals and the cost value is greater than 20 are shown. th
    14·1 answer
  • Explain why ethene is a planar molecules while ethyne is a linear molecules​
    13·2 answers
  • A trait is not a quality of your own character <br> True or False
    14·2 answers
  • The goal of ________ research is to describe things, such as the market potential for a product or the demographics and attitude
    13·1 answer
  • Which managerial function involves setting goals, establishing a strategy to pursue those goals, and forecasting future threats
    7·1 answer
  • Choose the organization listed below that takes a proactive role in developing recommendations and prototype technologies relate
    14·1 answer
  • The ______________ of estimating bad debts expense involves a detailed listing of each customer's outstanding account and its le
    14·1 answer
  • of $3.00 per unit. The variable cost to manufacture is $2.00 per unit. The monthly fixed costs are $8000. Its current sales are
    8·1 answer
  • the selling price of a product is $20 and the markup is $4 what percentage of the selling price does the markup represent a 20%
    6·2 answers
  • A product with a low level of elasticity of demand has which feature?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!