summaryrefslogtreecommitdiff
path: root/1208/CH4/EX4.2/Exa2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1208/CH4/EX4.2/Exa2.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 '1208/CH4/EX4.2/Exa2.sce')
-rwxr-xr-x1208/CH4/EX4.2/Exa2.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1208/CH4/EX4.2/Exa2.sce b/1208/CH4/EX4.2/Exa2.sce
new file mode 100755
index 000000000..92847fc7d
--- /dev/null
+++ b/1208/CH4/EX4.2/Exa2.sce
@@ -0,0 +1,23 @@
+//Exa 2
+clc;
+clear;
+close;
+//given data :
+//cash in flows of 1st,2nd,3rd and 4th years
+CIF1=20000;//in Rs.
+CIF2=30000;//in Rs.
+CIF3=40000;//in Rs.
+CIF4=50000;//in Rs.
+//Cummulative cash in flows of 1st,2nd,3rd and 4th years
+CumCIF1=20000;//in Rs.
+CumCIF2=50000;//in Rs.
+CumCIF3=90000;//in Rs.
+CumCIF4=140000;//in Rs.
+disp("In the table it can be seen that in 3 years 90000 Rs has been recovered, Rs. 10000 is left out of initial investment.")
+disp("Payback period is between 3 and 4 years.")
+E=3;
+B=100000-90000;//remaining balance to be recovered
+C=50000;//cash flow of last year
+PaybackPeriod=E+B/C;
+disp(PaybackPeriod,"Payback period of the project(in years) is : ");
+//Note : ans in the book is not accurate, given 3 years and two month. but it is 3.2 years and can say 3 years 2 month plus 12 days. \ No newline at end of file