1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors kernel math ;
6 ! Each employee fills out a w4
7 TUPLE: w4 year allowances married? ;
10 : allowance ( -- x ) 3500 ; inline
12 : calculate-w4-allowances ( w4 -- x ) allowances>> allowance * ;