We process the world TreeMap in order to answer important questions.
You will need the file world.dat to answer these questions offline.
Prior to 2004 the members of the European Union were
Use an accumulating parameter to calculate the total area of old Europe
In 2004 the following ten countries joined the EU
Calculate the total area of Europe including new and old.
String [] newEU = {"Cyprus", "Czech Republic", "Estonia",
"Hungary", "Latvia", "Lithuania", "Malta",
"Poland", "Slovakia", "Slovenia"};
The G8 summit in 2005 included Canada, France, Germany, Italy, Japan, Russia, United Kingdom and United States.
Calculate the total GDP for these countries and the total GDP for the planet. Print the GDP of the G8 as a percentage of World GDP.
We speculate that Mauritania has the median population. If that is the case then the number of countries with a population higher is exactly the same as the number of countries with a smaller population.
Print the number of countries smaller and the number of countries bigger than Mauritania. Do not count countries with exactly the same population.