Answer:
The code is given in C++ below
Explanation:
#include <iostream>
using namespace std;
int main()
{
float fv,pv,r,k,n,pmt,totalmoneyinvested;
pv=1000.00;
r=6/100;
k=12; //The value of k should be 12 for monthly installments
n=45;
pmt=250;
totalmoneyinvested=pv+(pmt*12*45); //The total money you invested
fv=pv*(1+r/k)*n*k+pmt*((1+r/k)*n*k-1)*(1+r/k)*r/k;
cout<<"Initial Investment:"<<" $"<<pv;
cout<<"\nRate Of Return:6%";
cout<<"\nLength of Time:"<<n<<"year";
cout<<"\nMonthly Payment:"<<" $"<<pmt;
cout<<"\nFinal Amount:"<<" $"<<fv;
cout<<"\nThe Money You Invested Is $"<<totalmoneyinvested<<" And The Final Amount Is $"<<fv;
return 0;
}
Answer:
Interface
Explanation:
Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in java using interface, with interface we uses implements keyword.
Example-
Declare interface like below code -
interface parent{
}
and use in child class like below code -
class Child1 implements interface{
}
class Child2 implements interface{
}
The answer is b. Susan has an appointment with he co-worker on the first Monday of every month. This scenario would benefit from being set up as a recurring appointment, since it requires the same thing to be done every month on the same day. Susan is likely to forget this appointment every month, so a reminder like this would be useful for her. For the other cases, a recurring appointment would not be of much benefit since they do not follow a particular pattern time-wise.
The answer has to be true because everything makes sense