CSCI 151 Fall 2014 Test 2

Example 1: Input: number of pounds = 7, price per pound = 3.99, TAX = 6, tax_indicator = 1
Output: $26.65
Explanation of the output: you bought 7 pounds, got 10% discount, the purchase is TAXABLE. Final price is $26.65

Example 2: Input: number of pounds = 15, price per pound = 2.99, TAX = 7, tax_indicator = 0
Output: $35.88
Explanation of the output: you bought 15 pounds, got 20% discount, the purchase is NOT TAXABLE. Final price is $35.88