diff options
Diffstat (limited to '1553/CH29/EX29.8/29Ex8.sce')
-rw-r--r-- | 1553/CH29/EX29.8/29Ex8.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1553/CH29/EX29.8/29Ex8.sce b/1553/CH29/EX29.8/29Ex8.sce new file mode 100644 index 000000000..8a90d05fe --- /dev/null +++ b/1553/CH29/EX29.8/29Ex8.sce @@ -0,0 +1,21 @@ +//Chapter 29 Ex8
+clc;
+clear;
+close;
+
+facevalue=25;
+premium=5;
+brokerage=1/4;
+shares=88;
+rateDividend=(15/2)/100; //rate is in percentage hence divided by 100
+investment=2662;
+
+cost1share=facevalue+premium+brokerage; //cash required to purchase Rs.100 stock
+costshares= cost1share*shares;
+facevalueAllShares=shares*facevalue;
+dividendAllShares=facevalueAllShares*rateDividend;
+income=dividendAllShares;
+
+rateInterest=(income/investment)*100;
+
+mprintf("The rate of interest on investment is Rs.%.1f percent",rateInterest);
|