{"id":25992,"date":"2022-01-19T08:44:19","date_gmt":"2022-01-19T08:44:19","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/unit-1-exercise-logic-drills-programming-ecpi-university\/"},"modified":"2022-01-19T08:44:19","modified_gmt":"2022-01-19T08:44:19","slug":"unit-1-exercise-logic-drills-programming-ecpi-university","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/unit-1-exercise-logic-drills-programming-ecpi-university\/","title":{"rendered":"Unit 1 exercise: logic drills | programming | ECPI University"},"content":{"rendered":"<div>\n<p>Write out the logic to the following problems.<\/p>\n<p>Example: Represent the logic of a program that allows the user to enter a value. The program divides the value by 2 and outputs the result.<\/p>\n<p>Solution:<\/p>\n<p>start<\/p>\n<p>\u00a0\u00a0input myNumber<\/p>\n<p>\u00a0\u00a0set myAnswer = myNumber \/ 2<\/p>\n<p>\u00a0\u00a0output myAnswer<\/p>\n<p>stop<\/p>\n<ol>\n<li>Represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results.<\/li>\n<li>Represent the logic of a program that allows the user to enter two values. The program outputs the product of the two values.<\/li>\n<li>Represent the logic of a program that allows the user to enter values for the width and length of a room&#8217;s floor in feet. The program outputs the area of the floor in square feet.<\/li>\n<\/ol>\n<p>Put your solutions in a Word document, and upload it<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Write out the logic to the following problems. Example: Represent the logic of a program that allows the user to enter a value. The program divides the value by 2 and outputs the result. Solution: start \u00a0\u00a0input myNumber \u00a0\u00a0set myAnswer = myNumber \/ 2 \u00a0\u00a0output myAnswer stop Represent the logic of a program that allows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-25992","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/25992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=25992"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/25992\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=25992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=25992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=25992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}