summaryrefslogtreecommitdiff
path: root/1553/CH29/EX29.2/29Ex2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH29/EX29.2/29Ex2.sce')
-rw-r--r--1553/CH29/EX29.2/29Ex2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1553/CH29/EX29.2/29Ex2.sce b/1553/CH29/EX29.2/29Ex2.sce
new file mode 100644
index 000000000..dbcf144b1
--- /dev/null
+++ b/1553/CH29/EX29.2/29Ex2.sce
@@ -0,0 +1,12 @@
+//Chapter 29 Ex2
+clc;
+clear;
+close;
+
+facevalue=100; //since the stock is calculated over 100
+marketvalue=107; //given
+brokerage=1/2; //value is in percentage
+purchaseAmt=3200;
+cashfacevalue=marketvalue+brokerage; //cash required to purchase Rs.100 stock
+cashpurchaseAmt= cashfacevalue*purchaseAmt/facevalue;
+mprintf("The cash required to purchase Rs.3200 stock is Rs.%.0f",cashpurchaseAmt);