summaryrefslogtreecommitdiff
path: root/1553/CH21/EX21.4/21Ex4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH21/EX21.4/21Ex4.sce')
-rw-r--r--1553/CH21/EX21.4/21Ex4.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1553/CH21/EX21.4/21Ex4.sce b/1553/CH21/EX21.4/21Ex4.sce
new file mode 100644
index 000000000..1769fc98d
--- /dev/null
+++ b/1553/CH21/EX21.4/21Ex4.sce
@@ -0,0 +1,12 @@
+//chapter 21 Ex 4
+
+clc;
+clear;
+close;
+Sum=800; amount=920; t=3; rIncrease=3;
+sInterest=amount-Sum;
+rate=(sInterest*100)/(Sum*t);
+rNew=(rate+rIncrease);
+sInterestNew=(Sum*rNew*t)/100;
+aNew=Sum+sInterestNew;
+printf("The new amount is Rs. %d",aNew);