summaryrefslogtreecommitdiff
path: root/1682/CH9/EX9.6/Exa9_6.sce
blob: 3eaec63e01dd49b4f4fbe088a2635d0109471272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Exa 9.6
clc;
clear;
close;
//Given data : 
P=100000;//in Rs
F=20000;//in Rs
n=8;//in years
t=5;//in years
Dt=(n-t+1)*(P-F)/(n*(n+1)/2);//in Rs.
disp(Dt,"D5 in Rs. : ");
Bt=(P-F)*((n-t)/n)*((n-t+1)/(n+1))+F;//in Rs.
disp(Bt,"B5 in Rs. : ")