summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.4
diff options
context:
space:
mode:
Diffstat (limited to '3434/CH14/EX14.4')
-rw-r--r--3434/CH14/EX14.4/Ex14_4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3434/CH14/EX14.4/Ex14_4.sce b/3434/CH14/EX14.4/Ex14_4.sce
new file mode 100644
index 000000000..3f1d38f17
--- /dev/null
+++ b/3434/CH14/EX14.4/Ex14_4.sce
@@ -0,0 +1,9 @@
+clc
+//given data
+A=500 // annual amount invested each year in rs
+i=9 // interest rate in %
+n=6 // time in years
+
+F=A*(((1+i/100.0)**n)-1)/(i/100.0) // future amount in rs
+
+printf("The Future amount will be Rs %.0f ",F)