summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.25/11Ex25.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH11/EX11.25/11Ex25.sce')
-rw-r--r--1553/CH11/EX11.25/11Ex25.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1553/CH11/EX11.25/11Ex25.sce b/1553/CH11/EX11.25/11Ex25.sce
new file mode 100644
index 000000000..a2c4dcd4c
--- /dev/null
+++ b/1553/CH11/EX11.25/11Ex25.sce
@@ -0,0 +1,15 @@
+//Chapter 9 Ex 25
+
+clc;
+close;
+clear;
+x=poly(0,'x');
+dis2=12.5/100;
+dis1=x;
+LP=150; SP=105;
+for x=1:50
+ if (((1-dis2)*(100-x)*LP)/100)==SP
+ break;
+ end
+end
+mprintf("First Discount=%d percent",x);