{"id":2846,"date":"2017-04-19T11:09:54","date_gmt":"2017-04-19T18:09:54","guid":{"rendered":"https:\/\/sites.evergreen.edu\/compcog17\/?page_id=2846"},"modified":"2017-04-19T11:26:11","modified_gmt":"2017-04-19T18:26:11","slug":"write-code-template","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/compcog17\/write-code-template\/","title":{"rendered":"Write Code Template"},"content":{"rendered":"<p>You will be given a problem where you are given a stack of test scores to process. \u00a0 You will write and English set of directions telling precisely how to solve the problem. \u00a0You will then translate this set of English directions into JavaScript code. \u00a0 You will be allowed minor syntax problems, but the program should be close to working. \u00a0 In order to pass the competency, \u00a0you must have the program correct. \u00a0 You task is to pass this competency multiple times. \u00a0This will be a major part of your Evaluations. \u00a0 Failure to pass this competency will result in a loss of credit. \u00a0 You will have 6 weeks to work on this task.<\/p>\n<p>Example Problem: \u00a0 Given a stack of test scores, go through them and for each score below 50, output this to the user and get this person&#8217;s name. \u00a0 After all of the scores have been processed, print the average of all of the even scored, the highest odd score, and the number of scores in the 80s.<\/p>\n<p><a href=\"https:\/\/myfiles.evergreen.edu\/academics\/programs\/compcog-s17\/Handouts\/WriteCodeExample1.htm\">Answer #1: \u00a0English (approximate)<\/a><\/p>\n<p><a href=\"https:\/\/myfiles.evergreen.edu\/academics\/programs\/\/compcog-s17\/Handouts\/WriteCodeExample1Run.html\">JavaScript: \u00a0Final Answer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You will be given a problem where you are given a stack of test scores to process. \u00a0 You will write and English set of directions telling precisely how to solve the problem. \u00a0You will then translate this set of English directions into JavaScript code. \u00a0 You will be allowed minor syntax problems, but the [&hellip;]<\/p>\n","protected":false},"author":274,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/pages\/2846"}],"collection":[{"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/users\/274"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/comments?post=2846"}],"version-history":[{"count":0,"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/pages\/2846\/revisions"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/compcog17\/wp-json\/wp\/v2\/media?parent=2846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}