{"id":1314,"date":"2015-04-26T20:06:01","date_gmt":"2015-04-27T03:06:01","guid":{"rendered":"http:\/\/sites.evergreen.edu\/compcog15\/?page_id=1314"},"modified":"2016-04-25T16:12:35","modified_gmt":"2016-04-25T23:12:35","slug":"solve-by-exhaustion-problem","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/compcog15\/solve-by-exhaustion-problem\/","title":{"rendered":"Solve By Exhaustion Problem"},"content":{"rendered":"<h1 class=\"entry-title\">Solve By Exhaustion, Assignment<\/h1>\n<h1>Your task is to solve the following problem: \u00a0 Find 4 numbers such that: \u00a0The second is 4 more than twice the first. \u00a0The third number is equal to the first number plus the second. \u00a0The fourth number minus the third number equals the first number. \u00a0The second number plus the third number is 4 more than the first number plus the fourth number. \u00a0 Use a variation of the following 2 programs. \u00a0 Run the program. \u00a0Check to see if the answer works. \u00a0 Print a listing of your working program, or get help.<\/h1>\n<h1>Here are 2 sample programs::<\/h1>\n<div class=\"entry-content\">\n<h1>Find 4 numbers such that: \u00a0The first number is divisible by 3. \u00a0The second number is twice the first, \u00a0the third number is equal to the first times the second, \u00a0and the 4th number is equal to the third number minus the sum of the first 2 numbers.<\/h1>\n<h1><a href=\"http:\/\/myfiles.evergreen.edu\/academics\/programs\/candc16\/Handouts\/ForExhaustion1.html\">Example 1<\/a><\/h1>\n<\/div>\n<h1>Use a nested for loops to find 4 numbers such that: \u00a0The sum of all 4 numbers is equal to 145, \u00a0twice the first number is 4 more than the second number, \u00a0the third number is equal to the first numnber plus the second number, and the 4th number is equal to 3 times the first.<\/h1>\n<h1><a href=\"http:\/\/myfiles.evergreen.edu\/academics\/programs\/candc16\/Handouts\/ForExhaustion2.html\">Example 2<\/a><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>Solve By Exhaustion, Assignment Your task is to solve the following problem: \u00a0 Find 4 numbers such that: \u00a0The second is 4 more than twice the first. \u00a0The third number is equal to the first number plus the second. \u00a0The fourth number minus the third number equals the first number. \u00a0The second number plus the [&hellip;]<\/p>\n","protected":false},"author":274,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/1314"}],"collection":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/users\/274"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/comments?post=1314"}],"version-history":[{"count":0,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/1314\/revisions"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/media?parent=1314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}