Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1.     double determinePopulation(int Region){
  2.         double population = Curr_Pop[Region];
  3.         int counter = 0;
  4.         double percentDelta;
  5.         while(counter <= 9){
  6.         percentDelta = Percentages[Region][Region];
  7.         for(int x = 0; x<=6; x++){ //To
  8.             if(x==Region){
  9.                 //just dont
  10.             }else{
  11.                 percentDelta = percentDelta + Percentages[x][Region];
  12.             }
  13.         }
  14.         for(int x = 0; x<=6; x++){ //From
  15.             if(x==Region){
  16.                 //just dont
  17.             }else{
  18.                 percentDelta = percentDelta - Percentages[Region][x];
  19.             }
  20.         }
  21.         population = population + (population * percentDelta);
  22.         counter++;
  23.         }
  24.         return population;
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement