diff options
Diffstat (limited to '1553/CH29/EX29.3/29Ex3.sce')
-rw-r--r-- | 1553/CH29/EX29.3/29Ex3.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1553/CH29/EX29.3/29Ex3.sce b/1553/CH29/EX29.3/29Ex3.sce new file mode 100644 index 000000000..b88c6f043 --- /dev/null +++ b/1553/CH29/EX29.3/29Ex3.sce @@ -0,0 +1,12 @@ +//Chapter 29 Ex3
+clc;
+clear;
+close;
+
+facevalue=100; //since the stock is calculated over 100
+discount=4;
+brokerage=1/4; //value is in percentage
+purchaseAmt=2400;
+cashfacevalue=facevalue-discount-brokerage; //cash required to purchase Rs.100 stock
+cashpurchaseAmt= cashfacevalue*purchaseAmt/facevalue;
+mprintf("The cash required to purchase Rs.2400 stock is Rs.%.0f",cashpurchaseAmt);
|