herrDeng網內搜尋

自訂搜尋

Ads

2015年3月30日 星期一

EX5複利計算

假設欠錢100萬,年利率為r=6%,複利計算5, 10, 15,20, 25, 30,35,40年後連本帶利還錢,應還多少錢?



循環複利計算公式為A=P*exp(r*t),A=本利和,P=本金,t=年數。

53 則留言:

D10333009 張賢青 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class exp
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還:"+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10033003陳志翔 提到...

public class D10033003 {

public static void t(int x){
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=x;
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
public static void main(String[] args) {
t(5);
t(10);
t(15);
t(20);
t(25);
t(30);
t(35);
t(40);
}
}

D10033305呂健宏 提到...


public class BADBOY {

public static void t(int x) {


double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=x;
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
public static void main(String[] args) {
t(5);
t(10);
t(15);
t(20);
t(25);
t(30);
t(35);
t(40);
}
}

D10333003盛采彤 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=2000000.0;
double r=0.05;
System.out.println("欠二百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);}
}
}

B10033077陳光浩 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=2000000.0;
double r=0.05;
System.out.println("欠二百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);}
}
}

D10333003盛采彤 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=2000000.0;
double r=0.05;
System.out.println("欠二百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);}
}
}

D10333039邱嘉琪 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333014邱宜貞 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}

}

}

D1033031張裕玲 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void main (String[] args) throws java.lang.Exception
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10033029 吳武俊 提到...

// TODO Auto-generated method stub
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class forFun
{
public static void t(int x){
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=x;

double A=P*Math.exp(r*t);

System.out.println(t+"年後要還"+A);
}

public static void main(String[] args){
t(5);
t(10);
t(15);
t(20);
t(25);
t(30);
t(35);
t(40);


}


}


y10310024陳穎慧 提到...

class years
{
public static void main (String[] args) throws java.lang.Exception
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");

for(int t=5;t<=40;t+=5)
{
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333004 夏志明 提到...

package hello;

import java.util.Scanner;

public class hi0330 {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333051呂秀娟 提到...

package hey;

import java.util.Scanner;

public class hi {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333045黃崇玨 提到...

D10333045黃崇玨
package hello;

import java.util.Scanner;

public class hi {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333007 馮婷鈺 提到...

D10333007 馮婷鈺

public class hi {

public static void main(String[] args) {

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333045黃崇玨 提到...

package hello;

import java.util.Scanner;

public class hi {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333040王崇安 提到...

D10333040王崇安



import java.util.*;
import java.lang.*;
import java.io.*;


class exp
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333034 洪芷茵 提到...

D10333034 洪芷茵

import java.util.*;
import java.lang.*;
import java.io.*;


class forFun
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;

}
}

D10333033江淑婷 提到...

D10333033江淑婷
import java.util.*;
import java.lang.*;
import java.io.*;


class exp
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}
static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333038歐俊吉 提到...

package hI;

import java.util.Scanner;

public class HELLO {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 50;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10033093葉正傑 提到...


public class apt {

public static void main(String[] args) {
// TODO Auto-generated method stub

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=5;
int u=10;
int v=15;
int w=20;
int x=25;
int y=30;
int z=35;
int s=40;
double A=P*Math.exp(r*t);
double B=P*Math.exp(r*u);
double C=P*Math.exp(r*v);
double D=P*Math.exp(r*w);
double E=P*Math.exp(r*x);
double F=P*Math.exp(r*y);
double G=P*Math.exp(r*z);
double H=P*Math.exp(r*s);
System.out.println(t+"年後要還"+A);
System.out.println(u+"年後要還"+B);
System.out.println(v+"年後要還"+C);
System.out.println(w+"年後要還"+D);
System.out.println(x+"年後要還"+E);
System.out.println(y+"年後要還"+F);
System.out.println(z+"年後要還"+G);
System.out.println(s+"年後要還"+H);





}
}

廖俊齊D10333017 提到...

package hI;

import java.util.Scanner;

public class HELLO {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 50;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10233203邱秀蓉 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class forFun
{
public static void main (String[] args)

{
for(int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還:"+exp(i)+"元");
}
static double exp(int t)
{
double P=1000000.0;
double r=0.06;

double A=P*Math.exp(r*t);
return A;
}
}

D10333032 陳子琳 提到...

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

class exp
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還:"+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333051呂秀娟 提到...

package hey;

import java.util.Scanner;

public class hi {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333041張晉豪 提到...

package hi;

import java.util.Scanner;

public class hi2 {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 50;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333045黃崇玨 提到...

package hello;

import java.util.Scanner;

public class hi {

public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333015 陳韻萱 提到...

public class hello {

public static void main (String[] args)
{
System.out.println("欠一百萬");
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年後要還"+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333010 柯羿瑄 提到...

D10333010 柯羿瑄



import java.util.*;
import java.lang.*;
import java.io.*;


class forFun
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;

}
}

D10333012 范秀娟 提到...

public class hi1 {

public static void main (String[] args)
{
for (int i = 5; i <=40; i+=5)
System.out.println("第"+i + "年後要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;

}
}

Unknown 提到...

d10033301江姿穎
package kelly0330;

public class kelly0330 {

public static void t(int x){
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=x;
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}

public static void main (String[] args){
t(5);
t(10);
t(15);
t(20);
t(25);
t(30);
t(35);
t(40);
}
}

D10333020徐瑞志 提到...

package hi;

import java.util.Scanner;

public class hi2 {



public static void main (String[] args) throws java.lang.Exception
{

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 50;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}

}

D10133086 范元譯 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

public class HI2 {

public static void main(String[] args) {

double P = 1000000.0;
double r = 0.06;
System.out.println("欠一百萬");
for (int t=5;t<45;t=t+5){
double A = P * Math.exp(r * t);
System.out.println(t + "年後要還" + A);
}



}

}

D10333028 提到...

import java.util.*;

import java.lang.*;
import java.io.*;



public class hi {

public static void main(String[] args) {
double P=1000000.0;

double r=0.07;

System.out.println("欠一百萬");

for(int t=5;t<45;t=t+5){

double A=P*Math.exp(r*t);

System.out.println(t+"年後要還"+A);
}

}

}

D10333008王旭翔 提到...

package jones;
import java.util.Scanner;
public class joneswang{
public static void main (String[] args) throws java.lang.Exception
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 50;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333026汪子揚 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

public class wawa {

public static void main(String[] args) {
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}

}

D10333019吳鴻陞 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

public class gg {

public static void main(String[] args) {
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}

}

D10333037 楊茗程 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class Hello
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333001 羅原福 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class luo1
{
public static void main(String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還:"+exp(i)+"元");
}

static double exp(int t)
{
double p=1000000.0;
double r=0.06;
double A=p*Math.exp(r*t);
return A;
}
}

B10033104賴奕隆 提到...

public class B10033104 {

public static void main(String[]args{
// TODO Auto-generated method stub
double P = 1000000.0;
double r = 0.06;
System.out.println("欠一百萬");
for (int t = 5; t < 41; t = t + 5) {
double A = P * Math.exp(r * t);
System.out.println(t + "年後要還" +A);
}
}
}

D10333008王旭翔 提到...

package joneswang;

public class joneswang1314 {

public static void main(String[] args) {
// TODO Auto-generated method stub

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333008王旭翔 提到...

package joneswang;

public class joneswang1314 {

public static void main(String[] args) {
// TODO Auto-generated method stub

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5 ; t < 45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

Y10310054 提到...


public class hi {

public static void main (String[] args)
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5;t < 45;t =t + 5 ){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);}

}
}

徐國智-D10333002 提到...

public class hi1 {

public static void main (String[] args)
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<=40;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}



Y10310054 提到...


public class hi {

public static void main (String[] args)
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for (int t = 5;t < 45;t =t + 5 ){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);}

}
}

D10033303 謝凱宇 提到...

class forFun

{

public static void t(int x){
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
int t=x;

double A=P*Math.exp(r*t);

System.out.println(t+"年後要還"+A);
}

public static void main(String[] args){
t(5);t(10);t(15);t(20);t(25);t(30);t(35);t(40);


}


}

D10333002-徐國智 提到...

public class hi1 {

public static void main (String[] args)
{
double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<=40;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

D10333030張佑榕 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class ex2
{
public static void main (String[] args)
{
for(int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double p=1000000.0;
double r=0.06;
double A=p*Math.exp(r*t);
return A;
}
}

D10333024黃培瑛 提到...

public class D10333024 {

public static void main (String[] args)
{
System.out.println("欠一百萬");
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年後要還"+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D10333042邱聖博 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class Hello
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還: "+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}


y10310066 陳昤瑄 提到...

y10310066 陳昤瑄

public class hi {

public static void main(String[] args) {

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

B10033077 陳光浩 提到...

import java.util.*;
import java.lang.*;
import java.io.*;

class exp
{
public static void main (String[] args)
{
for (int i=5;i<=40;i+=5)
System.out.println("第"+i+"年要還:"+exp(i)+"元");
}

static double exp(int t)
{
double P=1000000.0;
double r=0.06;
double A=P*Math.exp(r*t);
return A;
}
}

D9933084 陳睿喆 提到...

public class hi {

public static void main(String[] args) {

double P=1000000.0;
double r=0.06;
System.out.println("欠一百萬");
for(int t=5;t<45;t=t+5){
double A=P*Math.exp(r*t);
System.out.println(t+"年後要還"+A);
}
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章