# Java Population Projection Calculator

The program below is the answer to Liang's Introduction to Java Programming (9th Edition) Chapter 1 Exercise 1.11.

```/**
*
* @Author: Aghatise Osazuwa
* Website: www.cscprogrammingtutorials.com
*
* Exercise 1.11 - Population Projection
*
*/

import java.util.Scanner;

public class PopulationProjection {

public static void main(String[] args) {

int birth = 7;
int death = 13;
int immigrant = 45;
int currentPopulation = 312032486;
int year = 365;
int yearlyBirths = (((60 * 60 * 24 * year) / birth));
int yearlyDeaths = (((60 * 60 * 24 * year) / death));
int yearlyImmigrants = (((60 * 60 * 24 * year) / immigrant));
int yearlyPopulation = (yearlyBirths + yearlyImmigrants - yearlyDeaths);

System.out.println("Current Year Population = " + currentPopulation);
System.out.println("Next Year's Population = "
+ (currentPopulation + yearlyPopulation));
System.out.println("Next Two Year's Population = "
+ (currentPopulation + (yearlyPopulation * 2)));
System.out.println("Next Three Year's Population = "
+ (currentPopulation + (yearlyPopulation * 3)));
System.out.println("Next Four Year's Population = "
+ (currentPopulation + (yearlyPopulation * 4)));
System.out.println("Next Five Year'ss Population = "
+ (currentPopulation + (yearlyPopulation * 5)));
}
}
```

Click here to see other solutions to Introduction to Java Programming.