我需要帮助 [英] I need help

查看:56
本文介绍了我需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,这是一项家庭作业。我的导师打破了英语,我昨晚无法跟进。我该怎么做


用Java编写程序(没有图形用户界面)并拥有它

计算3个抵押贷款的支付金额: br />

a .. 7年5.35%

b .. 15年5.5%

c .. 30年5.75 %

使用数组表示不同的贷款。显示每笔贷款的抵押贷款金额



我的第一个是低于有效但我如何做以上


公共课wtest

{


public static void main(String [] args)

{

double principal = 2000000.0;

double rate = 5.75;

double term = 30.0;

double monthlyPayment = 0.0;


rate = rate / 1200.0;

term = term * 12;

monthlyPayment = principal * rate /(1.0 - Math.pow(rate) + 1,-term));

System.out.println(monthlyPayment);

}


}

-

互联网上最好的实时网络视频 http://www.seedsv.com/webdemo.htm

新的嵌入式系统W / Linux。我们现在销售DVR卡。

http: //www.seedsv.com/products.htm

Sharpvision只是最好的 http://www.seedsv.com

Yes this is a homework assignment. My instructor has broken english and I
just could not follow along last night. How do I do this

Write the program in Java (without a graphical user interface) and have it
calculate the payment amount for 3 mortgage loans:

a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above

public class wtest
{

public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;

rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 - Math.pow(rate+1,-term));
System.out.println(monthlyPayment);
}

}
--
The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com


推荐答案




(是否真的有必要将这个问题发布到四个

计算他们四个不同的新闻组,其中至少有一个

与之无关Java?请简要介绍一下新的Usenet或Emily Postnews文章中的一些

将会对

有益......)

pcbutts1写道On 02/23/06 14:33,:


(Was it really necessary to post this question to four
count them four different newsgroups, at least one of which
has nothing to do with Java? Methinks a brief look at some
of the "new to Usenet" or "Emily Postnews" articles would
be of benefit ...)
pcbutts1 wrote On 02/23/06 14:33,:
是的,这是一个家庭作业。我的导师打破了英语,我昨晚无法跟进。我该怎么做

用Java编写程序(没有图形用户界面)并用它来计算3个抵押贷款的支付金额:

.. 7年5.35%
b .. 15年5.5%
c .. 30年5.75%
使用阵列为不同的贷款。显示每笔贷款的抵押贷款金额

我的第一个是低于有效但我如何做以上

公共课wtest
{

public static void main(String [] args)
{
double principal = 2000000.0;
double rate = 5.75;
double term = 30.0 ;
double monthlyPayment = 0.0;

rate = rate / 1200.0;
term = term * 12;
monthlyPayment = principal * rate /(1.0 - Math.pow (rate + 1,-term));
System.out.println(monthlyPayment);
}

}
Yes this is a homework assignment. My instructor has broken english and I
just could not follow along last night. How do I do this

Write the program in Java (without a graphical user interface) and have it
calculate the payment amount for 3 mortgage loans:

a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above

public class wtest
{

public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;

rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 - Math.pow(rate+1,-term));
System.out.println(monthlyPayment);
}

}




既然是家庭作业,我会给出一个提示,而不是

一个全面的答案:


公共课Wtest {

public static void main(String [] args){

double principal = 2000000.0; //漂亮的房子!

double [] rates = {5.35,5.5,5.75};

double [] terms = {7.0,15.0,30.0};

for(int i = 0; i< rates.length; ++ i){

...


我希望这个帮助!


-
Er ****** ***@sun.com



Since it''s homework, I''ll give a hint rather than
an all-out answer:

public class Wtest {
public static void main (String[] args) {
double principal = 2000000.0; // nice house!
double[] rates = { 5.35, 5.5, 5.75 };
double[] terms = { 7.0, 15.0, 30.0 };
for (int i = 0; i < rates.length; ++i) {
...

I hope this helps!

--
Er*********@sun.com


感谢您的提示。对不起,我希望通过只阅读一组来获得最大结果

。我剪断了java脚本组。再次感谢。


-

互联网上最好的实时网络视频 http://www.seedsv.com/webdemo.htm

新的嵌入式系统W / Linux。我们现在销售DVR卡。

http: //www.seedsv.com/products.htm

Sharpvision只是最好的 http://www.seedsv.com


" Eric Sosman" <尔********* @ sun.com>在消息中写道

news:dt ********** @ news1brm.Central.Sun.COM ...
Thanks for the tip. Sorry for the cross post, I wanted the maximum results
by reading only one group. I snipped the java script group. Thanks again.

--
The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com

"Eric Sosman" <Er*********@sun.com> wrote in message
news:dt**********@news1brm.Central.Sun.COM...

(是否真的有必要将这个问题发布到四个
将它们统计为四个不同的新闻组,其中至少有一个与Java无关?请简要介绍一下这些新闻组的一些内容。 new to Usenet或Emily Postnews文章将有益于......)

pcbutts1写于02/23/06 14:33,:


(Was it really necessary to post this question to four
count them four different newsgroups, at least one of which
has nothing to do with Java? Methinks a brief look at some
of the "new to Usenet" or "Emily Postnews" articles would
be of benefit ...)
pcbutts1 wrote On 02/23/06 14:33,:
是的,这是一项家庭作业。我的导师打破了英语,我昨晚无法跟进。我该怎么做

用Java编写程序(没有图形用户界面)并且有
它计算3个抵押贷款的支付金额:
< br ..> 7年5.35%
b .. 15年5.5%
c .. 30年5.75%
使用阵列为不同的贷款。显示每笔贷款的抵押贷款金额

我的第一个是低于有效但我如何做以上

公共课wtest
{

public static void main(String [] args)
{
double principal = 2000000.0;
double rate = 5.75;
double term = 30.0 ;
double monthlyPayment = 0.0;

rate = rate / 1200.0;
term = term * 12;
monthlyPayment = principal * rate /(1.0 -
Math.pow(rate + 1,-term));
System.out.println(monthlyPayment);
}

}
Yes this is a homework assignment. My instructor has broken english and I
just could not follow along last night. How do I do this

Write the program in Java (without a graphical user interface) and have
it
calculate the payment amount for 3 mortgage loans:

a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above

public class wtest
{

public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;

rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 -
Math.pow(rate+1,-term));
System.out.println(monthlyPayment);
}

}



既然是作业,我会给出一个提示,而不是一个全面的答案:

公共课Wtest {
public static void main( String [] args){
double principal = 2000000.0; //好房子!
double [] rate = {5.35,5.5,5.75};
double [] terms = {7.0,15.0,30.0};
for(int i = 0; i< rates.length; ++ i){
...

我希望这会有所帮助!

-
Er ********* @ sun.com



你能给我另一个提示吗?我还是输了。


-

互联网上最好的网络视频 http://www.seedsv.com/webdemo.htm

新的嵌入式系统W / Linux。我们现在销售DVR卡。

http: //www.seedsv.com/products.htm

Sharpvision只是最好的 http://www.seedsv.com


" Eric Sosman" <尔********* @ sun.com>在消息中写道

news:dt ********** @ news1brm.Central.Sun.COM ...
Can you give me another hint? I am still lost.

--
The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com

"Eric Sosman" <Er*********@sun.com> wrote in message
news:dt**********@news1brm.Central.Sun.COM...

(是否真的有必要将这个问题发布到四个
将它们统计为四个不同的新闻组,其中至少有一个与Java无关?请简要介绍一下这些新闻组的一些内容。 new to Usenet或Emily Postnews文章将有益于......)

pcbutts1写于02/23/06 14:33,:


(Was it really necessary to post this question to four
count them four different newsgroups, at least one of which
has nothing to do with Java? Methinks a brief look at some
of the "new to Usenet" or "Emily Postnews" articles would
be of benefit ...)
pcbutts1 wrote On 02/23/06 14:33,:
是的,这是一项家庭作业。我的导师打破了英语,我昨晚无法跟进。我该怎么做

用Java编写程序(没有图形用户界面)并且有
它计算3个抵押贷款的支付金额:
< br ..> 7年5.35%
b .. 15年5.5%
c .. 30年5.75%
使用阵列为不同的贷款。显示每笔贷款的抵押贷款金额

我的第一个是低于有效但我如何做以上

公共课wtest
{

public static void main(String [] args)
{
double principal = 2000000.0;
double rate = 5.75;
double term = 30.0 ;
double monthlyPayment = 0.0;

rate = rate / 1200.0;
term = term * 12;
monthlyPayment = principal * rate /(1.0 -
Math.pow(rate + 1,-term));
System.out.println(monthlyPayment);
}

}
Yes this is a homework assignment. My instructor has broken english and I
just could not follow along last night. How do I do this

Write the program in Java (without a graphical user interface) and have
it
calculate the payment amount for 3 mortgage loans:

a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above

public class wtest
{

public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;

rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 -
Math.pow(rate+1,-term));
System.out.println(monthlyPayment);
}

}



既然是作业,我会给出一个提示,而不是一个全面的答案:

公共课Wtest {
public static void main( String [] args){
double principal = 2000000.0; //好房子!
double [] rate = {5.35,5.5,5.75};
double [] terms = {7.0,15.0,30.0};
for(int i = 0; i< rates.length; ++ i){
...

我希望这会有所帮助!

-
Er ********* @ sun.com



这篇关于我需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆