{"id":774,"date":"2014-04-17T22:27:58","date_gmt":"2014-04-17T22:27:58","guid":{"rendered":"http:\/\/blogs.evergreen.edu\/candc14\/?page_id=774"},"modified":"2014-04-17T22:27:58","modified_gmt":"2014-04-17T22:27:58","slug":"decision-table","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/compcog15\/communications-2\/forums\/classes\/april-19\/decision-table\/","title":{"rendered":"Decision Table"},"content":{"rendered":"<p>You are going to write a javascript program to figure out the price of a movie ticket.\u00a0 The rules are the following:\u00a0 Adults pay $8,\u00a0 Students $5, and Kids are free. \u00a0If you have a coupon, the fee is reduced 1$.\u00a0 On Wednesday the tickets are half price. \u00a0For example, an adult on Wednesday with a coupon would be charged $3.50 \u00a0(8-1\/2 ).\u00a0 On Thursday an adult with a coupon would be charged $7.\u00a0 Your program will find the price of a ticket for all conditions.<\/p>\n<p>Your task is to finish a decision table.\u00a0 We started this in class, and hopefully you took notes, but below is another start:<\/p>\n<p>Round 1:<\/p>\n<p>Type of TIcket:\u00a0\u00a0 A\u00a0 S\u00a0 K<\/p>\n<p>Round 2:<\/p>\n<p>Type of TIcket:\u00a0\u00a0\u00a0 A\u00a0 S\u00a0 K\u00a0 A\u00a0 S\u00a0 K<br \/>\nCoupon?:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Y\u00a0\u00a0Y\u00a0 Y\u00a0 N\u00a0 N\u00a0 N<\/p>\n<p>Round 3:<\/p>\n<p>Type of Ticket:\u00a0\u00a0\u00a0 A\u00a0 S\u00a0 K\u00a0 A\u00a0 S\u00a0 K\u00a0 A\u00a0 S\u00a0 K\u00a0 A\u00a0 S\u00a0 K<br \/>\nCoupon?:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Y\u00a0 Y\u00a0 Y\u00a0 N\u00a0 N\u00a0 N\u00a0 Y\u00a0 Y\u00a0 Y\u00a0 N\u00a0 N\u00a0 N<br \/>\nWednesday?\u00a0\u00a0\u00a0\u00a0\u00a0 Y\u00a0 Y\u00a0 (you finish)<\/p>\n<p>Result: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3.5 2 \u00a0(you finish)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You are going to write a javascript program to figure out the price of a movie ticket.\u00a0 The rules are the following:\u00a0 Adults pay $8,\u00a0 Students $5, and Kids are free. \u00a0If you have a coupon, the fee is reduced 1$.\u00a0 On Wednesday the tickets are half price. \u00a0For example, an adult on Wednesday with [&hellip;]<\/p>\n","protected":false},"author":274,"featured_media":0,"parent":556,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/774"}],"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=774"}],"version-history":[{"count":0,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/774\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/556"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/media?parent=774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}