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
Adama Company reported a net loss of $6,000 for the year ended December 31, 2014. During the year, accounts receivable increased
____ [38]

Answer:

a.used net cash of $17,000.

Explanation:

The preparation of the Cash Flows from Operating Activities—Indirect Method is shown below:

Cash flow from Operating activities - Indirect method

Net loss -$6,000

Adjustment made:

Add : Depreciation expense $12,000

Less: Increase in accounts receivable -$15,000

Add: Decrease in merchandise inventory $12,000

Less: Decrease in accounts payable -$20,000

Total of Adjustments -$11,000

Net Cash flow from Operating activities                               -$17,000

6 0
3 years ago
According to the austrian view of the business cycle, if expansionary monetary policy pushes the interest rate to an artificiall
sashaice [31]

Answer:

Mal investment and an unsustainable economic boom followed by recession

Explanation:

According to the austrian view of the business cycle, if expansionary monetary policy pushes the interest rate to an artificially low level, the result will be MAL INVESTMENT AND AN UNSUSTAINABLE ECONOMIC BOOM FOLLOWED BY RECESSION

6 0
3 years ago
The best reason for depositing money in a bank or credit union savings account instead of keeping your money "under the mattress
nadezda [96]
Your money in a bank account or credit union can earn interest whereas your 'under the mattress' money is just sitting there.

4 0
3 years ago
Would a pair of sneakers be a good store value?
inna [77]
Depend what sneakers you are talking about
7 0
3 years ago
Read 2 more answers
Oswego clay pipe company sold of pipe to southeast water district #45 on of the current year with terms . oswego uses the gross
alisha [4.7K]
<span>Oswego would debit accounts receivable with the amount of 46,000 and credit sales, also 46,000 for the period April 12. No terms have been inputted yet because we are using the gross method (meaning gross sales amount). So if there are terms given, like discounts after 15 or 30 days, it will only apply when the day of the discount comes. </span>
3 0
3 years ago
Other questions:
  • Which of these is a way to be sure that products or services are acceptable to customers?
    14·2 answers
  • Does a sole proprietor need a business license
    15·1 answer
  • You plan on supplementing your income. you would like to withdraw a semiannual salary of $6,951.20 from an account paying 1.75%
    10·1 answer
  • In order for North America to operate as healthy economy, what do individuals need to do to contribute to the success of the cou
    14·1 answer
  • Why is it important to study marketing?​
    13·1 answer
  • Pinacle Corp. budgeted $700,000 of overhead cost for the current year. Actual overhead costs for the year were $650,000. Pinacle
    13·1 answer
  • Independent auditing can best be described as:________. A. A regulatory function that prevents the issuance of improper financia
    6·1 answer
  • Mamel expects his research and development team to use creative thinking and develop new
    5·1 answer
  • What are the signs of high inflation?.
    5·1 answer
  • You work as a cashier at the local Grocery Store and make $ 9.00 per hour. You worked 6 hours on
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!