Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double determinePopulation(int Region){
- double population = Curr_Pop[Region];
- int counter = 0;
- double percentDelta;
- while(counter <= 9){
- percentDelta = Percentages[Region][Region];
- for(int x = 0; x<=6; x++){ //To
- if(x==Region){
- //just dont
- }else{
- percentDelta = percentDelta + Percentages[x][Region];
- }
- }
- for(int x = 0; x<=6; x++){ //From
- if(x==Region){
- //just dont
- }else{
- percentDelta = percentDelta - Percentages[Region][x];
- }
- }
- population = population + (population * percentDelta);
- counter++;
- }
- return population;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement