Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Anuitet implements Counting {
- double loan;
- double period;
- double percentage;
- double[] fullSums= new double[100];
- double unknown=0;
- public void counter()
- {
- percentage=percentage/12/100;
- for(int i=1;i<=period;i++)
- {
- unknown=(percentage*Math.pow((1+percentage),period))/(Math.pow((1+percentage),period)-1);
- fullSums[i-1]=unknown*loan;
- }
- for(int i=0;i<period;i++)
- System.out.println(fullSums[i]);
- //System.out.println(percentage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement