answer.
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
Eckert Corporation's partial income statement after its first year of operations is as follows:
Arte-miy333 [17]

Answer:

A. $2,700,000

Explanation:

For computing the deduction amount for depreciation tax, first we have to calculate the total amount of deferred tax amount which is shown below:

Total Deferred tax amount = Deferred tax × (percentage value ÷ tax rate)

= $90,000 × (100% ÷ 30%)

= $300,000

And the depreciation expense in this year is $2,400,000

So, the total amount deducted would be

= $300,000 + $2,400,000

= $2,700,000

4 0
2 years ago
​bill's organization expects​ 50% of profits to be generated by products that did not exist five years ago. what is the nature o
Elena-2011 [213]
The nature of the program that the organization's managers are likely to follow is INNOVATIVE. The organization's manager wanted to improve the products and set a goal to reach so that the employee will do their best to reach the goal that they didn't exist five years ago.
6 0
2 years ago
Many apartment-complex owners are installing water meters for each apartment and billing the occupants according to the amount o
kondor19780726 [428]

Answer:

<h2>The law of diminishing marginal utility and law of demand explain the decline in water usage by the residents or occupants,in this case.</h2>

Explanation:

  • In Microeconomic Theory,the law of diminishing marginal utility basically states that as a rational consumer or buyer consumes additional or one more unit of any product or service,the incremental or additional utility or satisfaction obtained from that per unit consumption or purchase decreases progressively.
  • Now,law of diminishing marginal utility has a conceptual connection with law of demand,which denotes the inverse or negative relationship between price of any normal good or service and its consumer demand.It implies that as price of any normal good or service increase,its consumer demand decreases and vise versa.
  • Now,observe that according to law of diminishing marginal utility,the additional or incremental consumer utility or satisfaction declines for per unit consumption,which essentially implies that the additional or marginal value of any normal product or service that the consumer is willing to pay decreases as he or she increases the consumption level.
  • Therefore,the willingness to pay for any consumer decreases progressively as he or she increases consumption level.This also explains that to increase the consumption level of any buyer or consumer,the product or service price has to decrease and vise versa.
  • In this case,as the residents use more units of water,the marginal utility or satisfaction obtained by the residents declines increasingly and so does the value they are willing to pay for more water usage.Now,installation of water meters compels the residents to pay for every unit of water they use and since the marginal utility of water drops with each unit of water usage,the price that the residents are willing to pay also drop for each additional unit of water that they use. In other words,the residents don't want to pay more and thus,they restricted their water usage.Therefore,the water usage also declined following the installation of water meter.
3 0
2 years ago
The staff training center at a large regional hospital provides training sessions in CPR to all employees. Assume that the capac
RideAnS [48]

Answer:

95%, 73.1%

Explanation:

Actual output= 950 per year

Design capacity= 1300 per year (Theoretical capacity)

Effective capacity= 1000 per year (efficiency of the shop)

Now Efficiency = actual output/effective capacity = 950/1000 = 0.95, 95.0%

Utilization= actual output/ design capacity = 950/1300 = 0.7308, 73.1%

4 0
2 years ago
The Nashville Division of Country Classics currently reports a profit of $3.6 million. Divisional invested capital totals $9.5 m
nlexa [21]

Answer:

Nashville's  residual income = Net profit - Imputed cost of capital

                                               = $3,600,000 - 12% x $9,500,000

                                               = $3,600,000 - $1,140,000

                                               = $2,460,000

Explanation:

Residual income is equal to net income minus imputed cost of capital. Imputed cost of capital is the product of interest rate and capital invested.

4 0
2 years ago
Other questions:
  • Frieda is itemizing deductions on her federal income tax return and had $1700 in non-reimbursed work expenses last year. If her
    11·1 answer
  • In the field of quality control, the science of statistics is often used to determine if a process is "out of control". Suppose
    15·1 answer
  • The following information was taken from the accounting records of Gorky Corporation for the year ended December 31, Year 1: Cas
    6·1 answer
  • Because there are a significant number of "green-conscious" consumers, it is a legitimate market segment for many companies that
    12·1 answer
  • Three years ago, law school admits deciding whether or not to attend the schools they were admitted to typically underestimated
    14·1 answer
  • If a security currently worth $12,800 will be worth $15,573.16 five years in the future, what is the implied interest rate the i
    9·2 answers
  • Lomani Ltd acquired two new machines for cash on 1 January 2017. The cost of machine A was $400 000, plus GST, and of machine B,
    7·1 answer
  • International Exchange has three divisions: A, B, and C. Division A has the least risk and Division C has the most risk. The fir
    10·1 answer
  • A large personal care products company adopts a(n) ________ approach to gain a competitive edge in light of intense foreign comp
    6·1 answer
  • Ruby wants to start her own business taking photographs. She already has her own camera, but needs to purchase lights, a photo p
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!