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
The night before a midterm exam, you decide to go to the movies instead of studying for the exam. You score 60 percent on your e
Aleks [24]

Answer:

10% of exam score

Explanation:

Opportunity Cost is the cost of next best alternative, foregone (sacrifised)  while making a choice.

Example : If a person has option to have an apple or an orange, & choses to have apple. The opportunity cost of having an apple is the sacrifised orange.

Given : A night before mid time exam, spent while watching movies - later lead to fall in exam grade from 70 % to 60%

The opportunity cost of movies watched, is the sacrifised grade of exam, which would have gotten, if the time would have spent in studying. The corresponding grade lost = 70% grade achievable - 60% grade achieved. Hence, the opportunity cost = 10% of exam score.

4 0
3 years ago
Knowles &amp; Foreman Company took the following data from its income statement at the end of the current year:Per-unit product
Slav-nsk [51]

Answer:

d. 1,680 units

Explanation:

7 0
3 years ago
Dawson Toys, Ltd., produces a toy called the Maze. The company has recently established a standard cost system to help control c
svlad2 [7]

Answer:

1. a. The materials price and quantity variances

Material price variance: Standard cost per micron is $1.50 and actual cost per micron is $1.48. So, price variance is 1.48 - 1.5 = $(0.02) per micron

Quantity variance: Based on standard bill of material, Dawson Toys need 3,000 x 6 = 18,000 microns to produce 3,000 Maze toys. Actual consumption volume is 25,000 - 5,000 = 20,000 microns. So, quantity variance is 20,000 - 18,000 = 2,000 microns.

1. b. The labor rate and efficiency variances

Actual labor rate  = Actual labor cost / Actual hour = 88,000/4,000 = $22 per hour.

Efficiency variance = Actual labor rate - Standard labor rate = 22 - 21 = $1 per hour.

2. Prepare a brief explanation of the possible causes of each variance.

Direct material cost variance: Total actual material cost is 20,000 x 1.48 = $29,600, higher than standard material cost of 18,000 x 1.5 = $27,000. This is mainly due to higher production waste as compared to standards.

Direct labor cost variance: Total actual labor cost is $88,000, higher than standard labor cost of 4,000 x 21 = $84,000. This is mainly due to lower labor rate per hour than expected.

Explanation:

5 0
2 years ago
Plz plz plz help me with these two click the pic plz multi choice ​
makvit [3.9K]

Answer:

For the first multi choice, I think the answer is `whether or not there is enough competition to keep prices low and quality high'

For the second multi choice, I think the answer is `the market is failing to compensate those who are impacted by the sale of goods and services`

3 0
2 years ago
How to make a promotional mix for a company
kondor19780726 [428]
Establishing the promotional mix that's right for your company involves seven steps:
Determine Your Target Market. ...

Determine Your Objectives. ...

Design Your Message. ...

Select Your Promotional Channels. ...

Determine Your Budget. ...

Determine Your Promotional Mix. ...

Measure the Results of the implemented program and Adjust as needed.
3 0
3 years ago
Other questions:
  • The cross price elasticity for coffee for a change in the price of tea is likely to be __________.
    12·1 answer
  • A company purchased a computer, office furniture, and office supplies by issuing a check for $5,000 and a note payable for $19,5
    10·1 answer
  • The Plastics Division of Weston Company manufactures plastic molds and then sells them for $70 per unit. Its variable cost is $3
    9·1 answer
  • Who likes juice wrld
    11·2 answers
  • Suppose the marginal propensity to consume is 0.8 and the government votes to increase taxes by $3 billion. Round to the nearest
    5·1 answer
  • ou currently own $100,000 worth of Wal-Mart stock. Suppose that Wal-Mart has an expected return of 14% and a volatility of 23%.
    15·1 answer
  • Which of the following types of product sales are most
    12·2 answers
  • What is a post secondary student highest fixed expense
    7·1 answer
  • How do consumers benefit from accumulating airline miles?
    10·1 answer
  • hat type of company is required by the sarbanes-oxley act to have a code of ethics available to all employees?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!