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:
Answer:
I would reccomend her, but I would tell the other company to be careful. She may not have been proven guilty, but it doesn not mean that she did not do it. Now, it is all up to the company to make the choice.
Explanation:
Answer:
a-1. The present value of Plan 1 = $93.08
a-2. The deal 2 which involves paying immediately adn taking the 10% discount is better.
Explanation:
a-1.
The interest rate of 5% is taken as the discount rate to convert future cash flows into the present value.
The First payment plan with installments has a present value of,
Present Value-Plan 1 = 25 + 25/1.05 + 25/1.05² + 25/1.05³ = $93.08
a-2.
The first plan will cost $93.08 in the present value.
The second plan will involve immediate payment and a discount of 10%vwhch makes the present value of plan 2 as $90 (100 - (100*0.1)).
Thus, the second deal or deal involving immediate payment and taking the discount is better.
<span>It is true that substance use can make you feel self-soothing when you feel stress or anxious. When you abuse these substances, it will make you feel dependent on them because of you wanting them every day. This is the reason why abusing substances can harm your body and make you feel uncomfortable without it.</span>
The correct answer is BOE *]