diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH14/EX14.6 | |
download | Scilab-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.6')
-rw-r--r-- | 3434/CH14/EX14.6/Ex14_6.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/3434/CH14/EX14.6/Ex14_6.sce b/3434/CH14/EX14.6/Ex14_6.sce new file mode 100644 index 000000000..794082b7a --- /dev/null +++ b/3434/CH14/EX14.6/Ex14_6.sce @@ -0,0 +1,8 @@ +clc
+//given data
+A=30000.0 // amount save each year in rs
+i=10/100.0 // interest rate
+n=8 // time in years
+
+P=A*(((1+i)**n)-1)/(i*((1+i)**n)) // amount spent on replacement in rs
+printf("Amount spent on replacement is Rs %i",P)
|