summaryrefslogtreecommitdiff
path: root/1553/CH10/EX10.22/10Ex22.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH10/EX10.22/10Ex22.sce')
-rw-r--r--1553/CH10/EX10.22/10Ex22.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH10/EX10.22/10Ex22.sce b/1553/CH10/EX10.22/10Ex22.sce
new file mode 100644
index 000000000..c2f4acb52
--- /dev/null
+++ b/1553/CH10/EX10.22/10Ex22.sce
@@ -0,0 +1,11 @@
+//chapter 10 Ex 22
+
+clc;
+clear;
+close;
+dec=10/100; numInc=30/100;
+original=100; num=100;
+totalsale=original*num;
+newtotal=original*(1-dec)*(1+numInc)*100;
+incRevenue=((newtotal-totalsale)/totalsale)*100;
+mprintf("The increase in revenue is %d percent",incRevenue);