summaryrefslogtreecommitdiff
path: root/1682/CH3/EX3.7/Exa3_7.sce
blob: 849f4496878682be06c183cdd3de5c21e37a87eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Exa3_7
clc;
clear;
close;
//given data is :
A1=4000;//in rupees
G=500;//in rupees
n=10;//in years
i=15;//% per annum
A=A1+G*(((1+i/100)^n-(i/100)*n-1)/((i/100)*(1+i/100)^n-(i/100)));
F=A*(((1+i/100)^n-1)/(i/100));
disp("At the end of 10th year, the compound amountr of all his payments will be : "+string(F)+" Rupees.");