{"id":3736,"date":"2023-03-01T18:53:09","date_gmt":"2023-03-01T23:53:09","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3736"},"modified":"2023-03-01T18:53:09","modified_gmt":"2023-03-01T23:53:09","slug":"blog-post-week-6b","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/01\/blog-post-week-6b\/","title":{"rendered":"Blog Post Week 6(B)"},"content":{"rendered":"<p style=\"font-weight: 400\">\u00a0So what are loops?<\/p>\n<p style=\"font-weight: 400\">A loop is a sequence of instructions that is repeated until a certain condition is reached.\u00a0Defining loops in codes allows computers to perform particular tasks repeatedly. Computer programming languages require loops so that the codes execute the actions as many times as needed. Loops can be very useful in making a code more functional, easier to write, and leaving room for fewer mistakes to be made.<\/p>\n<p style=\"font-weight: 400\">There are 3 types of loops used: for loop, while loop, and do-while<\/p>\n<p style=\"font-weight: 400\">How is each used?<\/p>\n<p style=\"font-weight: 400\">For loops are used when you know how many times the loop should run. The while loop is used to repeat a section of code an unknown number of times until a specific condition is met.<\/p>\n<p style=\"font-weight: 400\">A do-while loop is a control flow statement that executes a block of code at least once, and then either repeatedly executes the block or stops executing it, depending on a given Boolean condition at the end of the block.<\/p>\n<p style=\"font-weight: 400\">The three parts of a for loop are Initialization of the Loop, which Is used to initialize the for loop. Condition for the Loop is a condition or limitation for the for loop variable to limit its use. Updating the Loop is for updating the value of the loop to ensure its proper functioning of it.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-3737\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/java-loops-300x236.png\" alt=\"\" width=\"403\" height=\"317\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/java-loops-300x236.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/java-loops.png 664w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0So what are loops? A loop is a sequence of instructions that is repeated until a certain condition is reached.\u00a0Defining loops in codes allows computers to perform particular tasks repeatedly. Computer programming languages require loops so that the codes execute the actions as many times as needed. Loops can be very useful in making a [&hellip;]<\/p>\n","protected":false},"author":26754,"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":[10531],"tags":[],"class_list":{"0":"post-3736","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/26754"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3736"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3736\/revisions"}],"predecessor-version":[{"id":3738,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3736\/revisions\/3738"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}