summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.10/Ex14_10.sce
blob: d5bcb20283dd9a0dd497186975d8d0761e08befb (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
// given data

g=0.2 // annual gas price increase rate
i=10/100.0 // discount rate 
n=15 // time in years
A1=350*8 // payment at end of 1st year in lakhs rs

Pgg=(A1/(i-g))*(1-((1+g)/(1+i))**n) // present worth in Rs

printf("The present worth of saving is Rs %.0f",Pgg)