diff options
Diffstat (limited to '1943/CH1/EX1.12/Ex1_12.sce')
-rwxr-xr-x | 1943/CH1/EX1.12/Ex1_12.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1943/CH1/EX1.12/Ex1_12.sce b/1943/CH1/EX1.12/Ex1_12.sce new file mode 100755 index 000000000..483b99e8f --- /dev/null +++ b/1943/CH1/EX1.12/Ex1_12.sce @@ -0,0 +1,15 @@ + +clc
+clear
+//Input data
+CC=(80*10^6)//Capital cost in Rs
+L=30//Useful life in years
+S=5//Salvage value of the capital cost in percent
+i=0.06//Yearly rate of compound interest
+
+//Calculations
+A=((100-S)/100)*CC//Difference of capital cost and salvage value in Rs
+P=((A*i)/((1+i)^L-1))//The amount of money to be saved annually in Rs
+
+//Output
+printf('The amount of money to be saved annually is Rs.%3.0f/-',P)
|