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
Colliers, Inc., has 100,000 shares of cumulative preferred stock outstanding. The preferred stock pays dividends in the amount o
rodikova [14]

Answer:

Preference dividend = $2 x 100,000 shares x 2 years

Preference dividend = $400,000

The dividend paid to common stockholders = $600,000 - $400,000

                                                                         = $200,000

Explanation:

Dividends paid on preference shares are cumulative in nature because preference shares are fixed income securities. The dividends not paid last year would be paid this year. This is the rationale behind the multiplication of preference dividend by 2 years.

The dividend paid to common stockholders is the difference between the total dividend and dividend paid to preferred stockholders.

8 0
3 years ago
When auditors wish to issue an unmodied opinion but highlight that the entity changed its method of accounting forsoftware devel
love history [14]

Answer:

c. An emphasis-of-matter paragraph

Explanation:

Based on the information provided within the question it can be said that they would most appropriately identify the change in accounting in an emphasis-of-matter paragraph. This is a paragraph that illustrates the importance of the disclosed information or changes in the financial report, and that it is essential to the user's understanding of the report.

6 0
3 years ago
Which of the following activities are credits? The impact on accounts receivable from a $10 million collection from a customer.
bagirrra123 [75]

i don’t know .........

3 0
3 years ago
________ is a type of theatre in which sketches and vignettes alternate with musical numbers, but no single story carries throug
harkovskaia [24]
HaDhgshncb bjjhjhhhhhh
8 0
3 years ago
A customer at Jaquine, a French restaurant, complains to Brent, the owner, about a specialty dessert being unacceptable. Brent i
Alex Ar [27]

Answer:

B. a task analysis

Explanation:

A task analysis is a detailed analysis to define a set of steps that needed to be taken in order to reach a certain goal. In business , task analysis is conducted by observing the actions of the employees and form a measurement to ensure that the employees is making a desired improvement.

In the example above, Brent's goal is to ensure that Mason will never repeat his mistake in using bad ingredients ever again.

After he defined the goal, he analyze the situation and create a steps that needed to be taken to achieve the goal. That 'step' is putting Mason in an additional training

3 0
3 years ago
Other questions:
  • The new "Hungry for Apples?" campaign has been a resounding success, so that the quantity demanded is now 100% greater than befo
    12·1 answer
  • Brandon Ramirez wants to set up a scholarship at his alma mater. He is willing to invest $320,000 in an account earning 11 perce
    7·1 answer
  • Executives at Energex Enterprises are trying to determine whether it would be better to own and operate a factory overseas or to
    13·1 answer
  • 1. A market where tenants negotiate rent and other terms with property owners or their managers is referred to as a: a. Property
    5·1 answer
  • Strategic leadership:
    5·1 answer
  • Jill is a sales representative for a large pharmaceutical corporation. According to the current compensation system, if Jill mee
    14·1 answer
  • Contingent liabilities must be recorded if: Multiple Choice The future event is probable and the amount owed can be reasonably e
    5·1 answer
  • Brie buys a subscription to music provided by Concerto, an online streaming service. Before gaining access, Brie must agree to a
    6·2 answers
  • Here are incomplete financial statements for Pharoah Company. Calculate the missing amounts. PHAROAH COMPANY Balance Sheet Asset
    9·1 answer
  • When the owner of a small business started the company, she spent time identifying goals, managing resources, and determining th
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!