Personal deposit calculator(个人存款计算器)C#实现

参考招商银行

个人存款计算器:http://www.cmbchina.com/CmbWebPubInfo/Cal_Saving_Per.aspx?chnl=ckjsq
项目地址:
https://github.com/lianghowe/Personal_deposit_calculator

  1. 需求分析,先上图,有了这张图需求分析完成一大半了
    在这里插入图片描述
  2. 实现
    2.1使用了combobox的selectindexchanged事件,datetimepicker的valuechanged事件,布局用了tablelayoutpanel,一开始没想到用flowlayoutpanel 算是瑕疵吧。用了dictionary 还有几个数组。
    2.2还有combobox的清空选项。comboBox1.SelectedIndex = -1; comboBox1.Items.Clear();
    2.3还有datetime.today()获取时间,
    2.4遍历控件foreach (control c in this.controls) { System.console.writeline(c.text); }
    2.5dropdownlist获取当前字符串(string) ComboBox1.SelectedItem;
    2.6datetime对象比较大小用compare
  3. 利息计算方式
    years年数 deposit存款 rate利率 interest利息 month_deposit
    活期:一年360天,一月30天,按照这样计算,多了抹掉。interest=yearsdepositrate;
    整存整取:interest=yearsdepositrate;
    零存整取:moth_deposityearsrate*(0.5+6years);
    存本取息:interest=years
    depositrate;每次支取=interest/次数;
    整存零取:(month_deposit+deposit)/2
    次数间隔;
    定活两便: < 3 rate=0.3; <6 rate=0.81; <12 rate=0.93; >12 rate=1.05; interest=years
    depositrate;
    通知存款 :interest=years
    deposit*rate;
    教育储蓄:按照零整存取
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值