Previous Slide Example Program Run Next Slide

A run of this program might look like:
% tax
Welcome to the tax calculator.
Enter income amounts from each of your income sources rounded
to the nearest dollar.  Enter 0 (zero) when you are done.

Income: $10000

Income: $2500

Income: $0

Filing Statuses:
        0 = Single
        1 = Married Filing Jointly
        2 = Married Filing Separately
        3 = Head of Household

Enter status: 0

You owe $1800 on your income of $12500

Note that an income of 0 (zero) signals the end of incomes.