Weekend Programming Challenge – Week #38 Center of mass



Above picture is 100×100 pixels and have black object on white background. Make code which calculates the center of mass and display it.

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday December 22th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

2 Comments (+add yours?)

  1. Adib
    Dec 22, 2013 @ 00:26:38

    Hello, the imagefile looks like to be 90×90 not 100×100. 😮


    • ast
      Dec 30, 2013 @ 12:24:38

      90 pix is the scaling on the page for some reason (see source). Click the link or save/open the image and it should be 100×100.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: