Decision Table
You are going to write a javascript program to figure out the price of a movie ticket. The rules are the following: Adults pay $12, Students $9, and Kids 6 and under are free. If you have a coupon, the fee is reduced 1$. On Wednesday the tickets are half price. For example, an adult on Wednesday with a coupon would be charged $5 (12/2-1 ). On Thursday an adult with a coupon would be charged $11. Your table will find the price of a ticket for all conditions.
Your task is to finish a decision table. We started this in class, and hopefully you took notes, but below is another start:
Round 1:
Type of TIcket: A S K (A = adult, S = Student, K = Kid)
Round 2:
Type of TIcket: A S K A S K
Coupon?: Y Y Y N N N
Round 3:
Type of Ticket: A S K A S K A S K A S K
Coupon?: Y Y Y N N N Y Y Y N N N
Wednesday? Y Y (you finish)
Result: 5, 3.50 (you finish)