{"id":2667,"date":"2022-06-19T19:22:25","date_gmt":"2022-06-19T23:22:25","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/?p=2667"},"modified":"2022-06-19T19:22:25","modified_gmt":"2022-06-19T23:22:25","slug":"week-12-and-13","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/2022\/06\/19\/week-12-and-13\/","title":{"rendered":"Week 12 and 13"},"content":{"rendered":"<p>Week 12<\/p>\n<p>Why do we use loops?<br \/>\n-Loops are very convenient because it allows the programmer to shorten what could be hundreds of thousands of lines of code to just a few lines. It allows the programmer to write the code once and repeat it as many times needed.<\/p>\n<p>To run it a specific number of times, use a &#8220;For&#8221; loop. If we don&#8217;t have a specific number of times, use a &#8220;While&#8221; loop.<\/p>\n<p>A &#8220;For&#8221; loop code looks like &#8212; for (int i = 0; i &lt; 10; I++)<\/p>\n<p>&nbsp;<\/p>\n<p>Week 13<\/p>\n<p>Which coding language adds structure to a web page?<br \/>\n-Use HTML. It makes up the layout and structure for a website,<\/p>\n<p>Which coding language adds functionality to a web page?<br \/>\n-Use JavaScript. It is designed to provide interactivity on your webpage.<\/p>\n<p>Which coding language adds design elements to a web page?<br \/>\n-Use CSS. It is used for adding colors, layouts, and fonts.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/602\/1*Py2aNK1Kuls0riA64zl1eA.jpeg\" alt=\"A Simple Calculator Creating with HTML, CSS and JS | by Bhagya Ariyadasa |  Medium\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Week 12 Why do we use loops? -Loops are very convenient because it allows the programmer to shorten what could be hundreds of thousands of lines of code to just a few lines. It allows the programmer to write the code once and repeat it as many times needed. To run it a specific number [&hellip;]<\/p>\n","protected":false},"author":28306,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[663943],"tags":[],"class_list":{"0":"post-2667","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-instructor","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/users\/28306"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/comments?post=2667"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2667\/revisions"}],"predecessor-version":[{"id":2668,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2667\/revisions\/2668"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/media?parent=2667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/categories?post=2667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/tags?post=2667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}