GDP Bouncer


Concept.

I am really interested in world economy and right now I am taking macroeconomics class. That’s why I thought about some macroeconomics data. My data is GDP per capita taken from 209 countries.  I took this data from data.un.org. The reason why I have chosen GDP per capita is because in economics it is one of the main indexes showing how developed county is. And it tells us more about the county and its population’s wellbeing than overall GDP.

My application represents the world and interactions between different countries. The bouncing balls are the countries in this case. The color, which ranges from red to yellow, size and speed of the ball are determined by the size of GDP. The smaller GDP is the redder, the smaller and the faster the bouncing ball is. It shows how instable are most of the countries where general population’s wellbeing is low. And moreover whenever you click the mouse the small and red balls jump and start bouncing again. It shows how by some manipulations the countries with bad economy can be destabilized.

 

Design.

I had some problems getting the right api key so I just copied the needed table without modifications and stored it in txt file. Then I read the file using some tokens to get the right data. No new libraries were used.

Result.

I am quite happy with the result.  At least with what it represents. After the program runs for some time it becomes stable, and all the balls stop moving. At that point we can see how bigger and more yellow balls are located on top of the redder and smaller balls. And after couple of clicks redder balls start bouncing again and making the bigger balls move a little too. I think the whole this process represents the political situation in our world.

 

video:

[youtube=http://www.youtube.com/watch?v=s9VKL3XavlA] still struggling to make embedding correctly.

The code is here : BUZURMANKULOV3.zip

This entry was posted in Exercise 3. Bookmark the permalink.

Leave a Reply