blob: ba4ce98c6964c0b5a97541f75d475cb23e62c96f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clc
// given data
P=200000.0 //principal value in rs
i=10/100.0 // interest rate
n=25.0 // time in years
L=2.0 // power produced in kW
A=P*(i*(1+i)**n)/(-1+(1+i)**n) // annualised capital cost in rs
maintcost=P*0.05 // annual maintainence cost
Totalcost=A+maintcost // total annual cost
Elec=L*0.25*10*365 // annual electricity production
Cost=Totalcost/Elec // unit cost of electricity production
printf("unit cost of electricity production is Rs %.1f",Cost)
|