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]
1 year 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]1 year 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
Anderson sold a property to Kelly. The contract contained the following statement: "Buyer to accept the property in an 'as is' c
alina1380 [7]

Answer:

The action against the seller by Kelly would not be successful. This is because, the contract agreement drafted by the seller contains that clause "as in" condition. <em>It would be believed that, Kelly saw the condition in the contract, but still went ahead to purchase the house by signing the seller's contract agreement of sell. Whatever state the house is in would be taken by Kelly.</em>

Explanation:

4 0
1 year ago
Two companies, Rothko, LLC, and Calder &amp; Co., are racing each other to be the first to apply new deep-water drilling technol
wolverine [178]

Answer:

Consider the following calculations

Explanation:

Expected pay off of investing 1000 in Rothko,LLC= probability of getting oil stock *increase in value ofstock= .37* 63% of 1000

= .37*630= 233.1

Similarly

Expected pay off of investing 1000 in Calder & co = .63* 37% of 1000= .63* 370= 233.1

Of investing 500 in each

Expected pay off= .37 * 63% of 500 + .63* 37% of 500

= .37* 315 + .63* 185= 233.1

7 0
1 year ago
Bank D pays 7.289% effective annual yield on an investment account in which interest is compounded weekly. What is the annual in
Alex17521 [72]

Answer:

annual percentage rate: 7.0404%

Explanation:

We need to solve for the annual convertible rate  when we are given with the annual effective rate:

(1+APR/52)^{52}=1+0.07289\\APR =( \sqrt[52]{1.07289} -1) \times 52\\

apr = 0.0704035593 = 7.0404%

3 0
1 year ago
Read 2 more answers
A company has the choice of either selling 1,000 unfinished units as is or completing them. The company could sell the unfinishe
professor190 [17]

Answer:

It is more convenient to sell the units unfinished by $500.

Explanation:

Giving the following information:

Units= 1,000

Unfinished:

Selling price= $4.00 per unit.

Complete:

Incremental costs= $1.00 per unit for direct materials, $2.00 per unit for direct labor, and $1.50 per unit for overhead

Selling price= $8.00 each.

We need to calculate the gross profit of each option and choose the more convenient:

Unfinished:

Gross profit= 1,000*4= $4,000

Complete:

Gross profit= 1,000*(8 - 4.5)= $3,500

It is more convenient to sell the units unfinished by $500.

5 0
2 years ago
A professor records the majors of her 30 students as follows: Accounting Economics Undecided Finance Management Management Finan
vampirchik [111]

Answer: Nominal

Explanation:

When the Nominal measurement scale is used, it means the data was sorted into labels or names which is why it is sometimes referred to as Named data. For instance, sorting dogs in a park into their species i.e Husky, American Bull, German Shephard etc.  

There is no quantitative value and usually there is no ordering method to this measurement scale.

The professor sorted her students according to their majors which in this case acted as labels so the Professor was using the Nominal measurement scale.

3 0
1 year ago
Other questions:
  • A truck costs​ $303,000 and is expected to be driven​ 115,000 miles during its five minus −year life. residual value is expected
    11·1 answer
  • Ten years ago, John purchased a deferred annuity and named his daughter, Suzanne, as beneficiary. Over the years, John invested
    7·2 answers
  • Sunset Products manufactures skateboards. The following transactions occurred in March:
    15·1 answer
  • Becton Labs, Inc., produces various chemical compounds for industrial use. One compound, called Fludex, is prepared using an ela
    13·1 answer
  • 6. Suppose that the returns on the stock fund presented in Spreadsheet 6.1 were 240%, 214%, 17%, and 33% in the four scenarios.
    14·1 answer
  • Students are going through a three-step process to obtain their ID cards.
    6·1 answer
  • Identify the best definition of money. whatever serves society in three functions: medium of exchange, store of value, and unit
    6·1 answer
  • Drew and Tammy decide to start a new cake-decorating business. They each contribute $10,000 to get the business off the ground.
    12·1 answer
  • On June 30, 2021, Georgia-Atlantic, Inc. leased warehouse equipment from IC Leasing Corporation. The lease agreement calls for G
    13·1 answer
  • The United States has accused China of Multiple Choice contributing to the skyrocketing price of aluminum. reducing barriers in
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!