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