PublicServan 板


LINE

(本文公式有更正在底部) 公教 定期儲蓄存款 半年給息 利率1.595% 附件為細算公式 至少問了六位行員 如果不說 你一定不知道Trick在那裡 那一家的我不想說了 最後得知 它是單利 同時 以int(integer整數去除小數點) 來算 你可以心算出第一年前兩個月是 0 無言........................... 公教人員 你們辛苦了 台北富邦數位客服: 定存利息的計算方法,採按日計息 一、算式:本金X年利率/365天*存款天數, 故每月給息者,金額可能因月份天數不同有些微差異 注意它是 [按日計息] 由於沒有註明是四捨五入 所以我一概去除小數點 10000*1.595%/365*1 = 0.43698630137 第1天 利息是 0 10000*1.595%/365*1 = 0.43698630137 第2天 利息是 0 第一個月 利息 0 ////////////////////////////細算公式/////////////// Result0: 858 第一年利 Result1: 2801 第二年利 Result2: 4760 第三年利 將code start 到 code end 放入此站 然後點網站中第一列的Run看結果 https://www.onlinegdb.com/online_c++_compiler 如圖 https://www.mediafire.com/view/yvgqp550i4017zx/bank_interest.png/file //code start #include <iostream> #include <stdio.h> int main() { double half_interest0; double half_interest1; double accumulation = 0.0; accumulation += ((int)(10000 * 1.595 / 100 / 365)) * 31; accumulation += ((int)(20000 * 1.595 / 100 / 365)) * 28; accumulation += ((int)(30000 * 1.595 / 100 / 365)) * 31; accumulation += ((int)(40000 * 1.595 / 100 / 365)) * 30; accumulation += ((int)(50000 * 1.595 / 100 / 365)) * 31; accumulation += ((int)(60000 * 1.595 / 100 / 365)) * 20; half_interest0 = accumulation; accumulation = 0.0; accumulation += ((int)((60000 + half_interest0) * 1.595 / 100 / 365)) * 10; //6/21 pay interest accumulation += ((int)((70000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((80000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((90000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((100000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((110000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((120000 + half_interest0) * 1.595 / 100 / 365)) * 20; half_interest1 = accumulation; accumulation = 0.0; accumulation += ((int)((120000 + half_interest0 + half_interest1) * 1.595 / 100 / 365)) * 11; //12/21 pay interest std::cout << "Result0: " << half_interest0 + half_interest1 + accumulation << std::endl; accumulation = 0.0; accumulation += ((int)((120000 + 858 + 10000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 20000) * 1.595 / 100 / 365)) * 28; accumulation += ((int)((120000 + 858 + 30000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 40000) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((120000 + 858 + 50000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 60000) * 1.595 / 100 / 365)) * 20; half_interest0 = accumulation; accumulation = 0.0; accumulation += ((int)((120000 + 858 + 60000 + half_interest0) * 1.595 / 100 / 365)) * 10; //6/21 pay interest accumulation += ((int)((120000 + 858 + 70000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 80000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 90000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((120000 + 858 + 100000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((120000 + 858 + 110000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((120000 + 858 + 120000 + half_interest0) * 1.595 / 100 / 365)) * 20; half_interest1 = accumulation; accumulation = 0.0; accumulation += ((int)((120000 + 858 + 120000 + half_interest0 + half_interest1) * 1.595 / 100 / 365)) * 11; //12/21 pay interes std::cout << "Result1: " << half_interest0 + half_interest1 + accumulation << std::endl; accumulation = 0.0; accumulation += ((int)((240000 + 2801 + 10000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 20000) * 1.595 / 100 / 365)) * 28; accumulation += ((int)((240000 + 2801 + 30000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 40000) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((240000 + 2801 + 50000) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 60000) * 1.595 / 100 / 365)) * 20; half_interest0 = accumulation; accumulation = 0.0; accumulation += ((int)((240000 + 2801 + 60000 + half_interest0) * 1.595 / 100 / 365)) * 10; //6/21 pay interest accumulation += ((int)((240000 + 2801 + 70000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 80000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 90000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((240000 + 2801 + 100000 + half_interest0) * 1.595 / 100 / 365)) * 31; accumulation += ((int)((240000 + 2801 + 110000 + half_interest0) * 1.595 / 100 / 365)) * 30; accumulation += ((int)((240000 + 2801 + 120000 + half_interest0) * 1.595 / 100 / 365)) * 20; half_interest1 = accumulation; accumulation = 0.0; accumulation += ((int)((240000 + 2801 + 120000 + half_interest0 + half_interest1) * 1.595 / 100 / 365)) * 11; //12/21 pay interest std::cout << "Result2: " << half_interest0 + half_interest1 + accumulation << std::endl << std::endl; return 0; } //code end --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.187.86.86 (臺灣)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/PublicServan/M.1698072207.A.818.html
1F:推 aleventy: 超級優惠,給讚 10/23 22:58
2F:推 maiico: 央行14%屌打 10/24 07:18
3F:推 y932987: 搞不好是貪污 國外也有貪一元的案件 然後加總數字可觀 10/24 07:42
https://tinyurl.com/bd98wnwp 您說的叫 薩拉米 技術 Thomas Whiteside 在 1978 年出版的《Computer Capers》一書中報告了 40 多年前這種 技術的真實例子 銀行做就叫合法 你做就是違法
4F:→ iverson414: 笑爛了 10/24 08:04
5F:→ longlydreami: 其他投資比這個划算 這個太保守 10/24 09:18
6F:推 RX78NT1: 我也有去櫃檯問,他回答反正公家不會算錯你就領就對了 10/24 12:21
※ 編輯: fatalfeel2 (114.32.93.159 臺灣), 10/25/2023 11:00:58 公式有修正請看這 https://webptt.com/m.aspx?n=bbs/PublicServan/M.1698134548.A.0E3.html ※ 編輯: fatalfeel2 (114.32.93.159 臺灣), 10/25/2023 16:15:28
7F:推 roy147yo: C++好難啊 10/25 18:35







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:BuyTogether站內搜尋

TOP