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
hedging, or reducing risk, is the same as adding value or return to the firm. group of answer choices true false
pychu [463]

false Hedging, or lowering risk, is the same as increasing the firm's value or return.

<h3>How might currency risk be reduced through hedging?</h3>

hedging to reduce the risk of currency loss. Foreign exchange risk is an unavoidable reality for businesses doing business in other countries, although hedging can help reduce the risk. By taking a contrary position in a comparable asset, the hedging technique seeks to reduce risks associated with financial assets.

<h3>What does hedge mean?</h3>

A approach for reducing the risks associated with financial assets is hedging. It uses market tactics or financial instruments to reduce the risk of any unfavorable price changes. To put it another way, investors use a trade in another investment to protect one investment.

To know more about hedging, or reducing risk, visit:-

brainly.com/question/21600180

#SPJ4

4 0
1 year ago
5.ABC Company is planning to market a new model of product X. The management
Vladimir [108]

Answer:

Que

Explanation:

Que

7 0
3 years ago
One of your employees mentions to you that there is an active grapevine in your organization. Which of the following assumptions
astraxan [27]

Answer:

c. develop a relationship with the person at the center of the grapevine so you can quickly spread and receive information throughout the organization

d. paying attention to what is said on the grapevine will give you a good serve of what employees are really thinking and feeling about the company.

Explanation:

  • Grape wine is a rumor and informal channel of communication that spread throughout the organization in all directions irrespective of the authorities and develops due to various reasons.
  • In order to manage this grape wine within the organization, the leaders may need o to defend the boundaries of grapevines and avoid the spread of rumors.
7 0
3 years ago
Why is accuracy an essential element of business communication?
katovenus [111]

Communication is an essential element of any business. One needs to convey message as effectively as possible. Therefore accuracy is the key requirement for the business communication. without the accuracy the business message will be delivered either misleading or it will be unclear.

Misleading message or miscommunication can lead to huge problems to any business. When you are working with your client, he will trust your words only if they are accurate otherwise the deal can be lost too.

That is why accuracy is the most important element of any business communication and a significant interval of time must be spent on making the communication accurate in any organization.

To know more about Business communication here:

brainly.com/question/17181900

#SPJ4

3 0
2 years ago
A cylindrical can that has a capacity of 20 m3 will be made. The metal used to build the top costs $10 per square meter while th
Alchen [17]

The dimensions of the cylinder can be used to minimise cost of manufacture.

<h3>How to we find minimised cost?</h3>

Let's ignore the metal's thickness and assume that the material cost to manufacture is precisely proportionate to the surface area of a perfect cylinder.

A=2πr(r+h)

Given that V=1000=r2h and h=1000=r2, we can write

A=2πr(r+1000πr2)

A=2πr2+2000r−1

By setting the derivative to zero, we may determine the value of r that minimises A:

A′=4πr−2000r−2

0=4πr−2000r−2

2000r−2=4πr

2000=4πr3

r=500π−−−√3

r=5.419 + cm

h=1000πr2=10.838 + cm

The can with the smallest surface area has a volume of 1000 cm 3 and measures 5.419+ cm in radius and 10.838+ cm in height. The can has a surface area of 553.58 cm 2. Given a constant volume, the cylinder with diameter equal to height has the least surface area.

Can surface area (cm2) versus. radius (cm), where capacity = 1000cm 3.

Learn more about manufacturing here:

brainly.com/question/17111259

#SPJ4

8 0
2 years ago
Other questions:
  • The cash account for Pala Medical Co. at June 30, 20Y1, indicated a balance of $146,035. The bank statement indicated a balance
    6·1 answer
  • In order to be strategic when participating in the recruiting process, HR professionals must:______.
    5·1 answer
  • Which of these is an example of a tax on consumption?
    9·2 answers
  • Members of the board of directors of have received the following operating income data for the year just​ ended:
    5·1 answer
  • Each piece of stock that you own in a company is called a what?
    13·1 answer
  • Allyson Gomez invests $8,000 today in an investment that earns 6 percent per year (compounded annually) for 25 years. The averag
    6·1 answer
  • Determine the present value of the following single amounts (FV of $1, PV of $1, FVA of $1, PVA of $1,FVAD of $1 and PVAD of $1)
    5·1 answer
  • Nevin negotiates a deal for the sale of twenty-five acres of farmland to Otis. Nevin promises to hold the offer open in return f
    8·1 answer
  • Which of the statements is true regarding advertising? Perfectly competitive firms have the strongest incentive to advertise. Ad
    12·1 answer
  • The present value of $40,000 to be received in two years, at 12% compounded annually, is (rounded to nearest dollar)
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!