本文介绍了计算以下程序的编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.
我需要计算以下程序,请帮我做.
我的项目是:
例如,

Hello.
i am in need of to calculate following program kindly help me to do.
my project is:
for ex,

april month deposit - 300 (int 9%)
interest            -  2.25
may month deposit     - 300
existing amount(apr)  - 300
total                 - 600 (9%)
interest              - 4.5

int的总和(2.25 + 4.5)应该显示在文本框中.朋友,我应该这样计算12个月的时间.

如何计算累计利息和利息总和应在c#.net后端显示文本框为oracle
谢谢你..

我已经完成了计算利息的工作.我不知道如何计算累积(即)2.25 + 4.5
我的编码是:

sum of int (2.25+4.5) should display in text box. friends i should calculate intrest like this for 12 months.

how to calculate cumulative interest and the sum of interest should display textbox in c#.net back end is oracle
Thank you in advance..

i have completed up to calculate interest. i dunno how to calculate cumulative (ie) 2.25 + 4.5
my coding is:

           int cumu = Convert.ToInt32(textBox3.Text.Trim());
           int totdep = Convert.ToInt32(textBox4.Text.Trim());
           decimal tot = cumu + totdep;
           textBox4.Text = Convert.ToString(tot);
          
           decimal cumuint = ((tot * 10) / 100)/12;
           textBox5.Text = Convert.ToString(cumuint);
           int openbal = Convert.ToInt32(textBox2.Text.Trim());
           int totbal = cumu + openbal;
           textBox2.Text = Convert.ToString(totbal);

   actually received amount is textbox3. in textbox4 holds total received in that textbox4 calculating  interest. the interest amount will display in textbox5.
my needs are the sum of interest amount should calculate and display in textbox6

Old Balance	Current	Total	Per	month		
0	        300	300	9	2.25		
300      	300	600	9	4.5		
600	        300	900	9	6.75		
900	        300	1200	9	9		
1200     	300	1500	9	11.25		
1500	        300	1800	9	13.5		
1800	        300	2100	9	15.75		
2100	        300	2400	9	18		
2400	        300	2700	9	20.25		
2700	        300	3000	9	22.5		
3000     	300	3300	9	24.75		
3300	        300	3600	9	27		
				175.5	total int	I need to calculate this total


how can i develop the code for this calculation.?





[edit]删除了虚假的内联代码,添加了代码块以保留格式-OriginalGriff [/edit]

[再次编辑]已添加代码块-使用文本框上方的小部件将您的代码包围起来:它可以完成各种有用的操作! -OriginalGriff [/再次编辑]





[edit]Spurious Inline code removed, Code block added to preserve formatting - OriginalGriff[/edit]

[edit again]Code block added - use the widget above the text box to surround you code: it does all sorts of useful things! - OriginalGriff[/edit again]

推荐答案


这篇关于计算以下程序的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 21:42