diff options
Diffstat (limited to '1553/CH10/EX10.31/10Ex31.sce')
-rw-r--r-- | 1553/CH10/EX10.31/10Ex31.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH10/EX10.31/10Ex31.sce b/1553/CH10/EX10.31/10Ex31.sce new file mode 100644 index 000000000..49037924d --- /dev/null +++ b/1553/CH10/EX10.31/10Ex31.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 31
+
+clc;
+clear;
+close;
+redPercent=(25/4)/100; more=120;
+redRate=1-redPercent; //this term has to be multiplied by original rate that is found below
+originalRate=(more*(1/redRate-1));
+reducedRate=originalRate*redRate;
+mprintf("The reduced rate is Rs. %.2f per kg",reducedRate);
|