文件名称:怎样存钱利最大
介绍说明--下载内容来自于网络,使用问题请自行百度
假设银行整存整取存款不同期限的月息利率分别为:
0.63% 期限=1年
0.66% 期限=2年
0.69% 期限=3年
0.75% 期限=5年
0.84% 期限=8年
利息=本金*月息利率*12*存款年限。
现在某人手中有2000元钱,请通过计算选择一种存钱方案,使得钱存入银行20年后得到的利息最多(假定银行对超过存款期限的那一部分时间不付利息)。
*问题分析与算法
为了得到最多的利息,存入银行的钱应在到期时马上取出来,然后立刻将原来的本金和利息加起来再作为新的本金存入银行,这样不断地滚动直到满20年为止,由于存款的利率不同,所以不同的存款方法(年限)存20年得到的利息是不一样的。
-assume that banks Time deposits of various maturities The monthly interest rate : 0.63% one year period = 0.66% = 2 deadline, duration = 0.69% 0.75% 3 year period = 0.84% five-year period = 8 years principal Interest = The monthly rate * * * deposits 12 years. Someone hands now 2,000 yuan, a calculated choice to save the program, making money in the bank after 20 years the maximum interest rates (assuming the right bank deposits over the period of time that part does not pay interest). * Analysis and algorithm to be the most interest, the money deposited in a bank at the end should immediately take up and then immediately to the original principal and interest combined again as a new principal deposited in a bank, so to keep rolling until at least 20 years, due to differences between the i
0.63% 期限=1年
0.66% 期限=2年
0.69% 期限=3年
0.75% 期限=5年
0.84% 期限=8年
利息=本金*月息利率*12*存款年限。
现在某人手中有2000元钱,请通过计算选择一种存钱方案,使得钱存入银行20年后得到的利息最多(假定银行对超过存款期限的那一部分时间不付利息)。
*问题分析与算法
为了得到最多的利息,存入银行的钱应在到期时马上取出来,然后立刻将原来的本金和利息加起来再作为新的本金存入银行,这样不断地滚动直到满20年为止,由于存款的利率不同,所以不同的存款方法(年限)存20年得到的利息是不一样的。
-assume that banks Time deposits of various maturities The monthly interest rate : 0.63% one year period = 0.66% = 2 deadline, duration = 0.69% 0.75% 3 year period = 0.84% five-year period = 8 years principal Interest = The monthly rate * * * deposits 12 years. Someone hands now 2,000 yuan, a calculated choice to save the program, making money in the bank after 20 years the maximum interest rates (assuming the right bank deposits over the period of time that part does not pay interest). * Analysis and algorithm to be the most interest, the money deposited in a bank at the end should immediately take up and then immediately to the original principal and interest combined again as a new principal deposited in a bank, so to keep rolling until at least 20 years, due to differences between the i
(系统自动生成,下载前可以参看下载内容)
下载文件列表
怎样存钱利最大.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.