The rate of growth (or decrease) in world population depends on the average number of children each person has and the average child-bearing age. In the long run, the average individual standard of living decreases as the number of people increases and world resources decrease. This project demonstrates these effects. The code for the top-level class (the driver) in provided for this project and you are to create the driven classes needed for the top-level class to run correctly as described below. Please see the Supplied Solution Components and Sample Runs sections of this assignment for more information.
The 100-year results from the sample runs below suggest the following: Suppose each childbearing couple has 0.16 * (40 - 15) = 4 children, and each adult extracts from nonrenewable environmental resources at a rate of $3,000 per year. Then, the population will increase from 5.2 billion to 8.4 billion, resources will decrease from $1,977 trillion to $815 trillion, and the standard of living (consumption per person) will decrease from ($31 trillion / 5.2 billion) ≈ $5,000 per person per year to ($30 trillion / 8.4 billion people) ≈ $3,600 per person per year. On the other hand, suppose each child-bearing couple were to have only 0.12 * (40 – 15) = 3 children, and each adult extracted from nonrenewable environmental resources at a rate of only $1500 per year. Then, the population would decrease from 5.2 billion to 3.1 billion, nonrenewable resources would decrease from $1,977 trillion to $1,458, and the individual standard of living would improve to ($25 trillion / 3.1 billion people) ≈ $8,000 per person per year. With a lower population, there would be more sustainable resources per person.
Here is the UML class diagram and the description details for each of the other classes driven by the Demographics class that is provided to you: See image.
Government class:
Environment Diagram: See image.
Environment class:
People Diagram: See image.
People class:
A first sample run of the program is shown below. (Note: Bold texts are user input.)
Welcome to a demographic projections simulator!
Please enter the following information:
Youngest child-bearing age (15?): 15
Oldest child-bearing age (40?): 40
Children per year in child-bearing years (0.16?): 0.16
Annual unsustainable extraction in $/person (3000?): 3000
Enter number of years to simulate: 2
Enter first year to output economics: 2
Year #2
Populations:
Youth = 3.2 billion
Adults = 2.0 billion
Seniors = 0.0 billion
Total = 5.2 billion
Consumption: $31 trillion
Taxes: $13 trillion
Resources: $1,977 trillion
Thank you, good bye!
A second sample run of the program is shown below. (Note: Bold texts are user input.)
Welcome to a demographic projections simulator!
Please enter the following information:
Youngest child-bearing age (15?): 15
Oldest child-bearing age (40?): 40
Children per year in child-bearing years (0.16?): 0.16
Annual unsustainable extraction in $/person (3000?): 3000
Enter number of years to simulate: 100
Enter first year to output economics: 100
Year #100
Populations:
Youth = 4.6 billion
Adults = 3.6 billion
Seniors = 0.2 billion
Total = 8.4 billion
Consumption: $30 trillion
Taxes: $13 trillion
Resources: $815 trillion
Thank you, good bye!
A third sample run of the program is shown below. (Note: Bold texts are user input.)
Welcome to a demographic projections simulator!
Please enter the following information:
Youngest child-bearing age (15?): 15
Oldest child-bearing age (40?): 40
Children per year in child-bearing years (0.16?): 0.12
Annual unsustainable extraction in $/person (3000?): 1500
Enter number of years to simulate: 100
Enter first year to output economics: 100
Year #100
Populations:
Youth = 1.4 billion
Adults = 1.5 billion
Seniors = 0.1 billion
Total = 3.1 billion
Consumption: $25 trillion
Taxes: $11 trillion
Resources: $1,458 trillion
Thank you, good bye!