{"id":2055,"date":"2016-04-06T13:01:46","date_gmt":"2016-04-06T20:01:46","guid":{"rendered":"https:\/\/sites.evergreen.edu\/candc16\/?page_id=2055"},"modified":"2016-04-06T13:01:46","modified_gmt":"2016-04-06T20:01:46","slug":"decision-table","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/candc16\/decision-table\/","title":{"rendered":"Decision Table"},"content":{"rendered":"<div class=\"post-header\">\n<h1 class=\"post-title\">Decision Table<\/h1>\n<\/div>\n<div class=\"post-content\">\n<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 $12,\u00a0 Students $9, and Kids 6 and under 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 $5 \u00a0(12\/2-1 ).\u00a0 On Thursday an adult with a coupon would be charged $11.\u00a0 Your table\u00a0will 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 \u00a0 (A = adult, \u00a0S = Student, \u00a0K = Kid)<\/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 \u00a0Y\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 \u00a0Y\u00a0 Y\u00a0 (you finish)<\/p>\n<p>Result: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a05,\u00a0\u00a03.50 \u00a0(you finish)<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Decision Table 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 $12,\u00a0 Students $9, and Kids 6 and under are free. \u00a0If you have a coupon, the fee is reduced 1$.\u00a0 On Wednesday the tickets are half price. \u00a0For example, [&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\/candc16\/wp-json\/wp\/v2\/pages\/2055"}],"collection":[{"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/users\/274"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/comments?post=2055"}],"version-history":[{"count":0,"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/pages\/2055\/revisions"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/candc16\/wp-json\/wp\/v2\/media?parent=2055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}