summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.18/Ex14_18.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH14/EX14.18/Ex14_18.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3434/CH14/EX14.18/Ex14_18.sce')
-rw-r--r--3434/CH14/EX14.18/Ex14_18.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/3434/CH14/EX14.18/Ex14_18.sce b/3434/CH14/EX14.18/Ex14_18.sce
new file mode 100644
index 000000000..383534475
--- /dev/null
+++ b/3434/CH14/EX14.18/Ex14_18.sce
@@ -0,0 +1,34 @@
+clc
+// given data
+i=10/100.0 // rate
+Acost=90000 // cost of A in Rs
+Bcost=75000 // cost of B in Rs
+Acashfl=26000 // annual cash flow of A in Rs
+Bcashfl=26000 // annual cash flow of B in Rs
+nA=5 // useful life of A in years
+nB=4 // useful life of B in years
+
+NPVA=Acashfl*(((1+i)**nA) - 1)/(i*(1+i)**nA) - Acost // NPV for A
+NPVB=Bcashfl*(((1+i)**nB) - 1)/(i*(1+i)**nB)- Bcost // NPV for B
+
+printf( "\nThe NPV for A is Rs %.0f",NPVA)
+
+printf( "\nThe NPV for B is Rs %.0f",NPVB)
+
+AEA=i*NPVA/(1-(1+i)**(-nA))
+
+
+AEB=i*NPVB/(1-(1+i)**(-nB))
+
+printf( "\nThe AE for A is Rs %.0f",AEA)
+
+printf( "\nThe AE for B is Rs %.0f",AEB)
+
+printf( "\nThe machine B will have higher profitability")
+
+
+
+
+
+
+