發表文章

第16週Word貼到網頁+嵌入臉書到網頁

投入、陶醉與個性,她壓倒其他所有的舞者。 由 Robert Liu 發佈於  2020年12月18日 星期五

第十五週胡詠捷

利率y(rate) 期數n(nper) 金流m(pmt) 終值f(fv) 參考胡詠捷 金融市場 講義 胡詠捷學習HTML+CSS+JavaScript程式碼 在撰寫模式貼上WORD會有問題

第14週WORD VBApplication與 EXCEL VBApplication

圖片
  Dim n As Integer Dim spec As String Const period As Integer = 4 Const maxerror As Double = 0.0000001 Dim payment(period) As Double '廣域變數 4 維度的陣列 Private Sub CommandButton1_Click()   Dim a, b, c, f, gap As Double   Dim loopNumber As Integer   n = n + 1 '第幾次計算+1   a = 0     '報酬率0   b = 1     '報酬率1   gap = 10   loopNumber = 10   payment(0) = TextBox1.Value   payment(1) = TextBox2.Value   payment(2) = TextBox3.Value   payment(3) = TextBox4.Value   f = npv(a)   If f = 0 Then      Label9.Caption = 0   ElseIf f < 0 Then      Label9.Caption = "內部報酬率小於 0."   Else      Do While gap > mexerror And Abs(f) > maxerror And loopNumber < 100        loopNumber = loopNumber + 1        c = (a + b) / 2        f = npv(c)        If Abs(f) > maxerror And gap >...

寫上自己的名字胡詠捷

躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 胡詠捷向劉任昌學習程式設計程式碼如下

胡詠捷第十二週CSS+HTML+Java Script

躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 胡詠捷向劉任昌學習程式設計程式碼如下 <head> <style> h1 {胡詠捷   margin: 0;   padding: 20px 0;       color: #000000;   text-shadow: 4px 4px 3px Navy ; } .Takming {   border: 20px outset red;   background-color: green;   color: white;   text-align: center;} .pmt {   width: 60pt;   height: 20pt;   background-color: coral;   color: white;   text-align: right;} </style> </head> <body> <table border="1"> <tr align="center"><td>躉繳</td><td>第1期</td><td>第2期</td><td>第3期</td></tr> <tr><td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" ...

胡詠捷第11週SCC+HTML+JavaScript金融計算的準備

躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 以上的程式碼如下 <head> <style> .pmt {   width: 60pt;   height: 20pt;   background-color: coral;   color: white;   text-align: right;} </style> </head> <body> <table border="1"> <tr align="center"><td>躉繳</td><td>第1期</td><td>第2期</td><td>第3期</td></tr> <tr><td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" /></td>    <td><input class="pmt" type="number" /></td></tr> </table><br /> 注意,包含首期躉繳的現金流量都大於0。 <p><input onclick="IRR()" type="button" value="計算內部報酬率" />輸出:</p> <!-- 按下 button 去執行 JavaScrip...

胡詠捷第十週陣列

1 最大 2 次大 3 大三 4 第四 5 第五 是否要保留地址 呈現 呈現