Difference between revisions of "Be the Machine - if"

From Progzoo
Jump to: navigation, search
Line 30: Line 30:
 
     <td>Africa</td>
 
     <td>Africa</td>
 
     <td style='text-align:right'>1280</td>
 
     <td style='text-align:right'>1280</td>
     <td style='text-align:right'>91</td>
+
     <td style='text-align:right'>9</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 36: Line 36:
 
     <td>Americas</td>
 
     <td>Americas</td>
 
     <td style='text-align:right'>110</td>
 
     <td style='text-align:right'>110</td>
     <td style='text-align:right'>113</td>
+
     <td style='text-align:right'>11</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 42: Line 42:
 
     <td>Asia-Pacific</td>
 
     <td>Asia-Pacific</td>
 
     <td style='text-align:right'>18</td>
 
     <td style='text-align:right'>18</td>
     <td style='text-align:right'>8</td>
+
     <td style='text-align:right'>1</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 48: Line 48:
 
     <td>Middle East</td>
 
     <td>Middle East</td>
 
     <td style='text-align:right'>1650</td>
 
     <td style='text-align:right'>1650</td>
     <td style='text-align:right'>707</td>
+
     <td style='text-align:right'>70</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 54: Line 54:
 
     <td>Middle East</td>
 
     <td>Middle East</td>
 
     <td style='text-align:right'>438</td>
 
     <td style='text-align:right'>438</td>
     <td style='text-align:right'>265</td>
+
     <td style='text-align:right'>26</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 60: Line 60:
 
     <td>Asia-Pacific</td>
 
     <td>Asia-Pacific</td>
 
     <td style='text-align:right'>236</td>
 
     <td style='text-align:right'>236</td>
     <td style='text-align:right'>59</td>
+
     <td style='text-align:right'>6</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 66: Line 66:
 
     <td>Africa</td>
 
     <td>Africa</td>
 
     <td style='text-align:right'>1250</td>
 
     <td style='text-align:right'>1250</td>
     <td style='text-align:right'>138</td>
+
     <td style='text-align:right'>14</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 72: Line 72:
 
     <td>Middle East</td>
 
     <td>Middle East</td>
 
     <td style='text-align:right'>309</td>
 
     <td style='text-align:right'>309</td>
     <td style='text-align:right'>30</td>
+
     <td style='text-align:right'>3</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 78: Line 78:
 
     <td>South America</td>
 
     <td>South America</td>
 
     <td style='text-align:right'>1280</td>
 
     <td style='text-align:right'>1280</td>
     <td style='text-align:right'>280</td>
+
     <td style='text-align:right'>28</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 84: Line 84:
 
     <td>Africa</td>
 
     <td>Africa</td>
 
     <td style='text-align:right'>56</td>
 
     <td style='text-align:right'>56</td>
     <td style='text-align:right'>51</td>
+
     <td style='text-align:right'>5</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 08:49, 14 July 2010

Predict the output of each of the following programs.

name region area pop
Chad Africa 1280 9
Cuba Americas 110 11
Fiji Asia-Pacific 18 1
Iran Middle East 1650 70
Iraq Middle East 438 26
Laos Asia-Pacific 236 6
Mali Africa 1250 14
Oman Middle East 309 3
Peru South America 1280 28
Togo Africa 56 5

Problem 1


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 2


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 3


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 4


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 5


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 6


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 7


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 8


[Font] [Default] [Show] [Resize] [History] [Profile]