發表文章

目前顯示的是 12月, 2020的文章

拷貝老師的示範

圖片
馬哥2021年1月期末考 現值 利率 期數 金流 終值 對照EXCEL先打開從範圍定義名稱 對照EXCEL金融計算 程式碼 <style> h1{border: 30px outset red;     background-color: green;     color: white;   text-align: center;} </style> <h1>馬哥2021年1月期末考</h1> <!--輸出現值計算結果到 td--><table border="1"> <tbody> <tr><td>現值</td><td><input id="p" type="number" /></td><td><input onclick="CompP()" type="button" value="計算現值" /></td><td id="p_" width="160"></td></tr> <tr><td>利率</td><td><input id="y" type="number" /></td></tr> <tr><td>期數</td><td><input id="n" type="number" /></td><td><input onclick="CompN()" type="button" value="計算期數" /></td><td id="n_"></td></tr...

劉任昌 金融計算 期末考

圖片
楊基珠2021年1月期末考 現值 利率 期數 金流 終值 對應的EXCEL 開啟從選取範圍建立名稱 程式碼 <h1>馬哥2021年1月期末考</h1> <!--輸出現值計算結果到 td--><table border="1"> <tbody> <tr><td>現值</td><td><input id="p" type="number" /></td><td><input onclick="CompP()" type="button" value="計算現值" /></td><td id="p_" width="160"></td></tr> <tr><td>利率</td><td><input id="y" type="number" value="0.001" /></td></tr> <tr><td>期數</td><td><input id="n" type="number" value="240" /></td><td><input onclick="CompN()" type="button" value="計算期數" /></td><td id="n_"></td></tr> <tr><td>金流</td><td><input id="m" type="numb...

劉任昌 HTML + JavaScript + 金融計算 期末考

劉任昌2021年1月期末考 現值 利率 期數 金流 終值

16週 嵌入 word 貼文

嵌入word貼文 使用 iframe 嵌入

16週嵌入embed臉書貼文

16週嵌入 embed 臉書 iframe + JavaScript SKD

練習嵌入臉書 嵌入 iframe 嵌入 JavaScript SKD 投入、陶醉與個性,她壓倒其他所有的舞者。 由 Robert Liu 發佈於  2020年12月18日 星期五 練習嵌入劉任昌臉書舌板 嵌入 iframe 嵌入 JavaScript SKD 寒流來,熱血升。 由 Robert Liu 發佈於 2018年12月18日 星期二 上課同學 十五號同學 三十號同學

第十五周劉任昌HTML+WORD方程式編輯器+轉成 pdf

圖片
利率y(rate) 期數n(nper) 金流m(pmt) 終值f(fv) 參考劉任昌 金融市場講義 天大王學習WORD方程式編輯器 計算現值 程式設計 080 單元:複習方程式編輯器 年化利率 1.2%( 月利率 0.001) ,每月房貸繳交 20,000 ,問貸款多少? 計算每月房貸 天大王學習HTML+CSS+JavaScript程式碼 劉任昌教學影片078 劉任昌教學的程式碼 <style> h1{border: 30px outset red;     background-color: green;     color: white;   text-align: center;} h2{border: 15px outset red;     background-color: green;     color: white;   text-align: center;} </style> <script> function computePV(){   var r = document.getElementById("rate").value;   var n = document.getElementById("nper").value;   var m = document.getElementById("pmt").value;   var f = document.getElementById("fv").value;   pvif =r;   pvif++;   pvif =1/pvif**n;   var pv = (1-pvif)*m/r + f * pvif;   document.getElementById("pv").innerHTML = pv; } </script> <body> <table border="1"> <tr><td...

第14周劉任昌 WORD App 與 EXCEL APP

圖片
劉任昌學劉任昌的程式碼 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 A...

第13週匯入 VBA 然後在 WORD 畫面也輸出結果

圖片
在WORD打開開發人員功能 2020年12月3日學習成果 劉任昌上劉任昌程式設計VBA 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)      ...