Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public class Anuitet implements Counting {
  2.  
  3. double loan;
  4. double period;
  5. double percentage;
  6. double[] fullSums= new double[100];
  7. double unknown=0;
  8. public void counter()
  9. {
  10.  
  11. percentage=percentage/12/100;
  12. for(int i=1;i<=period;i++)
  13. {
  14. unknown=(percentage*Math.pow((1+percentage),period))/(Math.pow((1+percentage),period)-1);
  15. fullSums[i-1]=unknown*loan;
  16. }
  17. for(int i=0;i<period;i++)
  18. System.out.println(fullSums[i]);
  19. //System.out.println(percentage);
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement