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
How would a payment for rent paid in advance be classified? Multiple Choice Claims exchange transaction Asset use transaction As
kvv77 [185]

Answer:

Asset exchange transaction

Explanation:

Prepaid rent is an asset exchange transaction because cash (asset) is credited while prepaid rent (also an asset) is debited.

Rent paid in advance is recorded as follows:

Dr Prepaid rent

    Cr Cash

As the months go by, the prepaid rent is credited and rent expenses is debited.

Dr Rent expense month 1

    Cr Prepaid rent month 1

4 0
3 years ago
The term ssr/ss total is also called the select one:
GaryK [48]

Answer : coefficient of determination.

In the regression analysis results on MS excel the SSR/ SS total is called as " coefficient of determination"

6 0
3 years ago
Jackie notices everyone wearing Converse sneakers on the first day of school. Ever the fashionista, this will likely affect: Mul
masha68 [24]

Answer:

Jackie's income, as she now needs to buy Converse and will have less to spend on other goods.

Explanation:

Jackie is a fashionista and so she would respond to trends. Since everyone around her is wearing converse, she would want to wear converses too. so her income would be affected as it would be reduced as she would buy the converse.

8 0
3 years ago
XYZ DebenturesIssue Date: 8-1-XXPayment Dates: J 1 &amp; J 1Maturity Date: 7-1-XXSome years after issuance, a customer buys 10 d
SashulF [63]

Answer:

B. 105 days of accrued interest

Explanation:

The purchase on Thursday, October 12th will settle on Monday, October 16th - 2 business days after trade date.  

Accrued interest on corporate bonds is based on a 30days per month/360 day year.

And interest starts accruing from the day of the last interest payment, up to, but not including, settlement.

See below for day calculation

July   30 days

August  30 days

September 30 days

October  15 days (up to but excluding settlement)

Total  105 days

4 0
3 years ago
True or false? adults are categorized as those ages 25–64.
Maslowich
It's most likely true. Anyone over 64 is typically considered a senior or elder.
3 0
3 years ago
Read 2 more answers
Other questions:
  • A Liquidation of a partnership LO P5 Kendra, Cogley, and Mei share income and loss in a 3:2:1 ratio (in ratio form: Kendra, 3/6;
    11·1 answer
  • This cartoon can be read and enjoyed on several levels. Which statement best captures the economic message of
    5·1 answer
  • The town of Chester has an economy composed entirely of two equally sized food companies. Both company Q and company R produce p
    11·1 answer
  • Your grandfather wants to establish a scholarship in his father’s name at a local university and has stipulated that you will ad
    13·1 answer
  • _____ refers to the systematic process of regulating a company's activities to make them consistent with the expectations establ
    9·1 answer
  • Country C used to be a command economy but is now in the process of altering its economic system to embrace free-market capitali
    14·2 answers
  • Yoon, who sells designer jeans, has a mobile app to help women determine what leg style looks best on their body type. What coul
    6·1 answer
  • FaveMart, a discount chain store, offers the same basic products in all of its stores. It has a state-of-the-art distribution ne
    6·1 answer
  • Interview can be defined as an attempt to
    9·1 answer
  • 4. The company receives money from customers. What are the elements involved in this transaction? Use the T-account rules to fin
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!