Define a class named population. Include private fields that hold starting population, birth and death rate, and number of years. Write methods to set/get the values for the data members and to calculate the growth rate, estimated population, and display values.
Write a main () method that declares a population object and uses the methods.
Enter the starting population: 1000
Enter the birth Rate: 30
Enter the death Rate: 20
Enter the number of years: 5

Population Statistics
Starting Population :1000
Birth Rate : 30%

Death Rate : 20%

Number of years : 5
Population growth Rate :10%
Estimated population : 1500
Press any key to continue