{"id":335,"date":"2016-04-18T16:05:15","date_gmt":"2016-04-18T14:05:15","guid":{"rendered":"https:\/\/inf.gymgmunden.at\/?p=335"},"modified":"2016-04-18T16:04:45","modified_gmt":"2016-04-18T14:04:45","slug":"programmieren-von-schleifen-und-quersummen","status":"publish","type":"post","link":"https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/","title":{"rendered":"Programmieren: Von Schleifen und Quersummen"},"content":{"rendered":"<p>Diese Woche im WPG Inf7:<\/p>\n<p>Weiter gehts mit Teil 2 der Grundlagen im Programmieren in PHP. Heute nehmen wir uns die verschiedenen Schleifentypen genauer vor, und berechnen neben ein paar Gro\u00df- und Kleinschreib-Spielereien die Quersumme beliebiger Zahlen. Wozu? Sagen euch die Teilungsregeln noch was? \ud83d\ude42 Abschlie\u00dfend haben wir mithilfe der foreach-Schleife doch glatt noch einen kleinen Pizza-Bestellservice programmiert.<\/p>\n<p>W\u00e4hrenddessen programmiert Jakob an der L\u00f6sung von Level 4 des &#8222;Game of Drones :-)&#8220;, der Drohnensteuerung vom letzten Programmierwettbewerb. Wo versteckt sich blo\u00df das Obsticle auf 70|23?<\/p>\n<div id='gallery-1' class='gallery galleryid-335 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/p02-2\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-342\" srcset=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-150x150.jpg 150w, https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-300x297.jpg 300w, https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-1024x1014.jpg 1024w, https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-640x634.jpg 640w, https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1-1010x1001.jpg 1010w, https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p02-1.jpg 1060w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-342'>\n\t\t\t\tfor-Schleife I\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/p03-2\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p03-1-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-343\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-343'>\n\t\t\t\tfor-Schleife II\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/p04\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p04-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-344\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-344'>\n\t\t\t\tDrohne\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/p06\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/p06-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-345\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-345'>\n\t\t\t\tPizza!!\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level0101\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level0101-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-336\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-336'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level101\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level101-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-337\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-337'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level102\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level102-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-338\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-338'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level103\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level103-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-339\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-339'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level104\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level104-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-340\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-340'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/inf.gymgmunden.at\/index.php\/2016\/04\/18\/programmieren-von-schleifen-und-quersummen\/level105\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/inf.gymgmunden.at\/wp-content\/uploads\/2016\/04\/level105-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-341\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-341'>\n\t\t\t\tCCC Drohne 2D\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Diese Woche im WPG Inf7: Weiter gehts mit Teil 2 der Grundlagen im Programmieren in PHP. Heute nehmen wir uns die verschiedenen Schleifentypen genauer vor, und berechnen neben ein paar Gro\u00df- und Kleinschreib-Spielereien die Quersumme beliebiger Zahlen. Wozu? Sagen euch die Teilungsregeln noch was? \ud83d\ude42 Abschlie\u00dfend haben wir mithilfe der foreach-Schleife doch glatt noch einen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,11,10,5],"tags":[],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-c","category-php","category-programmieren","category-wpg-inf-7-no-excuses"],"_links":{"self":[{"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":2,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/posts\/335\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inf.gymgmunden.at\/index.php\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}