[问题] 一个数学问题

无忧黄雨

小本生意
VIP
注册
2004-08-27
消息
4,409
荣誉分数
51
声望点数
158
所在地
京城
你欠银行40000 分期付款,每月还400 每月的利息是2%
求,几个月还清
做不出来,真是不好意思

请写过程

谢谢谢谢谢
 
首先列一条计算总利息的式子:40000*2% + (40000-400)*2% (40000-400*2)*2% + ......+ (40000-400*(n-1))*2%

n-1 是还款总月数

然后根据其中规律写成 sigma 求和公式,可以计算最后利息。利息算出来后,还请所有贷款后,还要每个付400的利息,这个楼主来算吧 :D

题目不是很清楚,我觉得是这样,错了别怪我
也可以用这种思路计算其他
 
越看越像C++的assignment...不过2%好像是年息,难道我记错了?...
 
Total is 109.48 months

Total interest Paid: 3793.63
 
the 2% must be the annual interest rate!!!
otherwise, you will never finish returning the money!
because 400/2% = 20000 < 40000
20000 is when N -> +OO, the limit of principle that you have returned.
so suppose 2% is annual interest rate, the real rate is 2%/12 = 0.833%
N is the number of returning years
the formula is 400 * (1-q^N) / (1-q) = 40000 * q ^ (12*N) where q = 1+0.833%
 
这个是C++的assignment,我已经做出来了

谢谢大家
 
拜托!,想想看,你第一个月就要交$800的利息,你一个月才交$400,以后要交的利息越来越多, 你永远都别想还清,而且越还债越多.做出来才有鬼呢!!!!!!!!!
要不你的题目有问题,一年2%还差不多!!!!!!!
 
是年息。至是我要的是公式,所以年息月息差不多
 
int *count=0;

float *monthly_pay = 400 * 0.02f;
float *left = 0.0f;

while (*left >= *monthly_pay) {
*left = 40000- monthly_pay;
*cuont++;
}
count +=1;
//the count is that you want the number of months
 
or you can remove the pointers cuz sometimes they dont work! By the way, this is an O(n) algorithm:D
 
(如果年利息还差不多)
最简单的做法:
步骤:40000=400乘(1-(1+2%)(-N))除2%(说明:-N是1+2%的-N次方,算出N就是期限)
 
一道题目荟萃了各个领域的知识。呵呵!
 
大哥你真的很强悍,我告诉你,等你把钱都还请的时候你就知道用几个月了!!!!
这是最简单的方法了!!!!
 
后退
顶部