Golden Thumb

1-on-1 tutor of chosen kids
個人資料
正文

有時孩子僅僅是需要比咱想象的更多一些的嗬護

(2019-10-06 20:26:02) 下一個

[閱讀原文]

Sometimes Kids Just Need More Help

Angie finished her homework which was drawing the game board. Everything is good so she was provided her first challenge: centre the board horizontally on the blue canvas. She knew how to move the grid left and right, but couldn’t find the right formula that worked. Her best try got left margin the hardcoded value 200 which looked pretty good. However she seemed unable to move on with a solution.

I made a screenshot and pasted onto TextEdit, trying to explain further. With the width of canvas 736 and the width of the grid 320 marked up in red, Angie calculated with pencil and paper and got a = 208.

what should a be to put the grid in the middle horizontally?

“Where does your 208 come from, Angie?”, I asked. She typed the following.

(736 - 320) / 2

...

[閱讀原文]

[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.