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]
2 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]2 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
Harrelson Company manufactures pizza sauce through two production departments: Cooking and Canning. In each process, materials a
Marina CMI [18]

Answer:

Both the department entries are posted.

Explanation:

Harrelson Company

General Journal

Date             Account Titles and Explanation      Debit          Credit

April 30          Work In Process    Cooking           22,800        

                           Work In Process Canning           10,900

                            Direct Materials Inventory                            33700

(To record materials used)

30                      Work In Process  Cooking         9,430  

                            Work In Process Canning         7,230

                               Direct Labor                                             16,660

(To assign factory labor to production)

30                         Work In Process     Cooking     33,800

                               Work In Process Canning      28,100

                                  Manufacturing Overhead                     61900

(To assign overhead to production)

30                           Work In Process Canning         55,900

                                       Work In Process  Cooking                  55,900

(To record costs transferred in)  Assuming Canning is the second department and cooking is the first. So costs are transferred from the first to the second department.

8 0
2 years ago
A(n) _____ is awarded on the basis of financial need. You will not be charged any interest before you begin repayment or during
prisoha [69]

scholarship i think

4 0
2 years ago
Read 2 more answers
he following is a partially completed lower section of a departmental expense allocation spreadsheet for Brickland. It reports t
deff fn [24]

Answer:

$7,000

Explanation:

The computation of the amount of purchasing department allocated to assembly department is shown below:

= Total  purchasing department cost × number of purchase order  ÷Total numbers of purchase orders in overall operating departments

= $35,000 × 4 ÷ 20

= $7,000

The 20 number of purchase orders is come from

= 16 + 4

= 20

We simply applied the above formula

7 0
2 years ago
Columbia Corporation produces a single product. The company's variable costing income statement for November appears below: Colu
Mekhanik [1.2K]

Answer:

Value of closing Inventory under absorption costing = $56,610

Explanation:

Provided sales for the month = $902,000 a the rate of $22 per unit.

That means sales in units = $902,000/ $22 = 41,000 units.

Provided opening stock of finished goods = 8,770 units

Production for the month of November = 35,560 units

Closing inventory = Opening + Manufactured - Sales

                              = 8,770 + 35,560 - 41,000 = 3,330

Under absorption costing only manufacturing overheads are added to the cost of goods, operating expenses like selling & administrative do not form part of that.

Variable cost of goods sold do not include operating expenses, as variable selling expenses are provided separately.

Therefore cost of goods sold per unit = $574,000/41,000 = $14 per unit.

Variable selling expenses will not form part of value of closing inventory under absorption costing.

Fixed manufacturing expenses will be considered fully with the production quantity of 35,560 units as no production capacity has been provided.

Manufacturing fixed cost per unit = $106,680/35,560 = $3 per unit

Value of closing Inventory = Cost of goods sold per unit + Fixed cost per unit allocated

= ($14 X 3,330) + ($3 X 3,330) = $56,610

8 0
2 years ago
a. If Alpha produced 6 pearls and 15 pineapples while Beta produced 30 pearls and 8 pineapples before they decided to trade, how
Mazyrski [523]

Answer:

Alpha will produce no pearls and Beta will produce 60 pearls, increasing the combined production from 36 pearls.

Explanation:

A comparative advantage of a country is defined if the country is able to produce a product with the least opportunity cost than its trade partner countries.

So first we calculate the cost of producing each good for each of the countries.

For Alpha:

      1 pearls = 15/6 pineapples

      1 pearls = 2.5 pineapples

Similarly,

      1 pineapple = 6/15 pearls

      1 pineapple = 0.4 pearls

So for Alpha, the opportunity cost of producing one pearl is 2.5 pineapple, to produce 1 pineapple, Alpha has to sacrifice 0.4 pearls.

Opportunity cost for Beta:

      1 pearls = 8/30 pineapples

      1 pearls = 0.27 pineapples

Similarly:

      1 pineapple = 30/8 pearls

      1 pineapple = 3.75 pearls

So for Beta, the opportunity cost of producing one pearl is 0.27 pineapple, to produce 1 pineapple, Alpha has to sacrifice 3.75 pearls.

It can be seen that the opportunity cost of producing pineapples is least for Alpha, Beta has the lowest opportunity cost for producing pearls. So Alpha will export pineapples while Beta will export pearls.

Thus if both decide to trade produce only that good in which it has the opportunity cost, then Alpha's production of pineapple will be

15 + 2.5 X 6 = 15+15 = 30  pineapple

While Beta's production of pearls will be

30 + 3.75 X 8 = 30 + 30 = 60 pearls.

So Alpha will produce no pearls and Beta will produce 60 pearls, increasing the combined production from 36 pearls.

3 0
2 years ago
Other questions:
  • Which sentences describe characteristics of a sole proprietorship?
    13·1 answer
  • Spurling et al. investigated the effects of two vocabulary learning strategies on word retention two weeks later. in this exampl
    7·2 answers
  • Which of the following statements concerning a process cost accounting system is false? A. The units in beginning inventory plus
    5·1 answer
  • Dristell Inc. had the following activities during the year (all transactions are for cash unless stated otherwise):A building wi
    14·1 answer
  • Randy, the production manager at a computer hardware manufacturing company, is never satisfied with the productivity of his work
    7·2 answers
  • While Jon is walking to school one morning, a helicopter flying overhead drops a $20 bill. Not knowing how to return it, Jon kee
    6·1 answer
  • An organization contracts with software developers to produce apps for clients. The organization is paid in part by how well the
    14·1 answer
  • Exchanging business cards in Asia must be done with respect, according to the customs and norms of the country or region. This p
    11·1 answer
  • The process of putting strategy into action is known as:_________a. Environmental analysis.b. Strategy formulation.c. Strategic
    14·1 answer
  • Republic Industries decides to price delivery services according to the results of a recent activity-based costing (ABC) study.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!