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;
}
The Canterbury Tales, written towards the end of the fourteenth century by Geoffrey Chaucer, is considered an estates satire because it effectively criticizes, even to the point of parody, the main social classes of the time. These classes were referred to as the three estates, the church, the nobility, and the peasantry, which for a long time represented the majority of the population.
Answer:
The operation that will occur first is D5*C6 (multiplication).
Explanation:
Excel’s default order of operator precedence mandates that Excel perform multiplication before addition and substraction. If you want the addition or substraction to be performed before multiplication or division, they must be in parentheses.
The order of operations in exel is:
1. Evaluate items in parentheses.
2. Evaluate ranges (:).
3. Evaluate intersections (spaces).
4. Evaluate unions (,).
5. Perform negation (-).
6. Convert percentages (%).
7. Perform exponentiation (^).
8. Perform multiplication (*) and division (/), which are of equal precedence.
9. Perform addition (+) and subtraction (-), which are of equal precedence.
10. Evaluate text operators (&).
11. Perform comparisons (=, <>, <=, >=).
Answer:
Written in Python
for num in range(1,1001):
sum=0
for j in range(1,num+1):
if num%j==0:
sum = sum + j
if num == sum:
print(str(num)+" is a perfect number")
Explanation:
This line gets the range from 1 to 1000
for num in range(1,1001):
This line initializes sum to 0 for each number 1 to 1000
sum=0
This line gets the divisor for each number 1 to 1000
for j in range(1,num+1):
This following if condition line checks for divisor of each number
<em> if num%j==0:
</em>
<em> sum = sum + j
</em>
The following if condition checks for perfect number
if num == sum:
print(str(num)+" is a perfect number")