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
Product A is normally sold for $9.60 per unit. A special price of $7.20 is offered for the export market. The variable productio
elixir [45]

Answer:

A. Reject (Alternative 1) $0.00

Accept (Alternative 2) $1.12

Differentials Effect on income (Alternative 2) $1.12

B. Accepted (Alternative 2)

Explanation:

a. Preparation of a differential analysis dated March 16 on whether to reject (Alternative 1) or accept (Alternative 2) the special order.

DIFFERENTIAL ANALYSIS

Reject (Alternative 1) or Accept (Alternative 2)

March 16

Reject Accept Differentials Effect on income

(Alternative 1) (Alternative 2) (Alternative 2)

Revenue per unit $0.00 $7.20 $7.20

Costs:

Variable manufacturing costs per unit

$0.00 -$5.00 -$5.00

Export tariff per unit

$0.00 -$1.08 -$1.08

($7.20*15%=$1.08)

Income (Loss) per unit $0.00 $1.12 $1.12

b. Based on the above differential analysis

the special order should be ACCEPTED (Alternative 2).

5 0
3 years ago
As an alternative to managing stressors, many organizations teach employees to use _____ to counteract the effects of stressors
Korolek [52]

Answer:

relaxation techniques

Explanation:

Many companies know a day teach employees relaxation techniques in order to counteract the effects of stressors. Such techniques can include breathing focus methods, Yoga, Tai Chi, Qigong, Mindfulness Meditation, etc. These all help relax both the body and mind to maintain a healthy balance. These relaxation techniques are extremely popular within the tech industry since many programmers and individuals in this industry work insanely long hours.

8 0
3 years ago
Lake acquired a controlling interest in Boxwood several years ago. During the current fiscal period, the two companies individua
bixtya [17]

a) With Lake's 60% controlling interest in Boxwood, the total income tax expense reported on a consolidated income statement for this period is $99,023 ($471,540 x 21%).

b)  With Lake's 60% controlling interest in Boxwood, the total amount of income taxes payable for the current year is $101,400 ($363,000 + $120,000) x 21%.

c)  With Lake's 90% controlling interest in Boxwood, the amount of income tax expense to be reported on the consolidated income statement for the year is $97,820 ($465,810 x 21%).

<h3>What is controlling interest?</h3>

Controlling interest exists when a company or an individual owns more than 50% of the shareholdings of another company.  This gives the investor shareholder a majority voting share to influence decisions of the subsidiary company.

<h3>Data and Calculations:</h3>

                                    Lake        Boxwood

Income reported    $363,000    $120,000

Dividend paid             60,000          5,000

Dividend income          3,000 ($5,000 x 60%)

Increase in intra-entity gross profits = $19,100 ($41,500 - $22,400).

Excludable intra-entity gross profits = $11,460 ($19,100 x 60%).

Consolidated Income = $471,540 ($363,000 + $120,000 - $11,460)

Excludable intra-entity gross profits = $17,190 ($19,100 x 90%).

Consolidated Income = $465,810 ($363,000 + $120,000 - $17,190)

Learn more about controlling interests at brainly.com/question/15415717

5 0
2 years ago
Suppose a life insurance company sells a ​$290 comma 000 ​one-year term life insurance policy to a 20​-year-old female for ​$280
Monica [59]

Answer:

The insurance company will gain an expected value $176.66032

Explanation:

The expected value is the gain or loss of an event and is calculated each outcome by its probability.

In our case we have to consider all events as follows;

The probability of dying means the insurance company will have a loss of $290,000 and gain $280 which is the cost of the policy. The probability of this happening=(1-probability of living)=(1-0.999644)=0.000356

The probability of living means the insurance company will gain $280, and the probability of this happening=0.999644

The gain or loss from death=280-290,000=-$289,720

The gain or loss from living=$280

Expected value=(The loss from death×probability of death)+(The gain from living×probability of living)

where;

The loss from death=-$290,000

Probability of death=0.000356

The gain from living=$280

Probability of living=0.999644

replacing;

Expected value=(-290,000×0.000356)+(280×0.999644)

Expected value=(-103.24+279.90032)

Expected value=$176.66032

The insurance company will gain an expected value $176.66032

4 0
2 years ago
The total value of all final goods and services produced in a given year, calculated using the prices of a selected base year, i
vodomira [7]

Answer:

real GDP.

Explanation:

GDP is defined as the monetary value of all goods and services produced in an economy within a give time period. It is a measure of how productive an economy is.

Real GDP considers market prices of commodities in relation to a base year.

For example if 2012 is considered to be the base year for real GDP this year, all goods and services are multiplied by the prices as at 2012 to get the monetary value of goods and services for the present year.

Base year prices are referred to as constant prices when calculating real GDP.

7 0
3 years ago
Other questions:
  • Releasing more information, in a common-value auction is a. ​Good for the bidders because it reduces the risk that they face b.
    9·1 answer
  • Julia received a notice that her son’s tricycle had been recalled. Which consumer right protected Julia? the right to be informe
    15·2 answers
  • A(n) _____ allows you to create a wireless connection among your smart devices.
    6·2 answers
  • This article (Links to an external site.) suggests, based on significant evidence, that competition in US markets is not only co
    6·1 answer
  • A monopolist, unlike a competitive firm, has some market power. It can raise its price, within limits, without the quantity dema
    13·1 answer
  • Mm mjhuuuuuuuuuuuuuuuuuuuuuh
    9·2 answers
  • Spencer Supply’s stock is currently selling for $60 a share. The firm is expected to earn $5.40 per share this year and to pay a
    7·1 answer
  • On December 10, 2020, Jennings, Inc. paid out total dividends of $350,000 (this was the only dividend payment made during the ye
    8·1 answer
  • g reported pretax accounting income of $860 million for the current year. Depreciation reported in the tax return in excess of d
    11·1 answer
  • 12. What is OSHA's purpose?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!