發表文章

陳鈺晴期末考

圖片
陳鈺晴2021年1月7日期末考 現值 利率 期數 金流 終值 對照EXCEL先打開從範圍定義名稱 對照EXCEL金融計算 CSS顏色參考來自 維基百科 中文 英文 代碼&顏色 中文 英文 代碼&顏色 中文 英文 代碼&顏色 中文 英文 代碼&顏色 黑色 black #000000 銀色 silver #c0c0c0 栗色 maroon #800000 紅色 red #ff0000 深藍色 navy #000080 藍色 blue #0000ff 紫色 purple #800080 品紅色 fuchsia #ff00ff 綠色 green #008000 萊姆色 lime #00ff00 橄欖色 olive #808000 黃色 yellow #ffff00 墨綠色 teal #008080 青色 cyan #00ffff 灰色 gray #808080 白色 white #ffffff 程式碼 <style> h1{border: 30px outset LightSkyBlue;     background-color: Pink;     color: white;   text-align: center;} </style> <h1>陳鈺晴2021年1月7日期末考</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>利率...

陳鈺晴程式設計期末考

2021年1月期末考 現值 利率 期數 金流 終值 程式碼 <h1>陳鈺晴2021年1月期末考</h1> <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="number" value="0" /></td><td>...

第十六週陳鈺晴 嵌入embed臉書iframe+JavaScript SKD

投入、陶醉與個性,她壓倒其他所有的舞者。 由 Robert Liu 發佈於  2020年12月18日 星期五 嵌入臉書 嵌入iframe 投入、陶醉與個性,她壓倒其他所有的舞者。 由 Robert Liu 發佈於  2020年12月18日 星期五 嵌入JavaScript SKD 嵌入滑板 嵌入iframe 上課三十四號同學

第十五週陳鈺晴HTML+word方程式編輯器+轉成pdf

圖片
利率y(rate) 期數n(nper) 金流m(pmt) 終值f(fv) 參考劉任昌 金融市場講義 陳鈺晴學習word方程式編輯 年畫利率1.2%(年利率0.001),買月房貸繳交20000,問貸款多少? 陳鈺晴學習HTML+CSS+JavaScript程式碼 留任昌教學影片078 留任昌教學的程式設計 <style> h1{border: 20px outset pink;     background-color: black;     color: white;   text-align: center;}  h2{border: 20px outset pink;     background-color: black;     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>利率y(rate)</td><td>期數n(npe...

第13週程式設計VBA

圖片
程式設計070 程式設計071 程式設計072 程式設計073 Dim n As Integer 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   a = 0   b = 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 > maxerror Then         ...

陳鈺晴第11週CSS+HTML+金融計算

躉繳 第1期 第2期 第3期 第4期 注意,包含首期躉繳的現金流量都大於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 去執行 ...

陳鈺晴第十周 陣列 array

1 最大 2 次大 3 大三 4 第四 5 第五 呈現地址 呈現 呈現