taxIncreaseOrNot.rb
Just to clarify:
#!/usr/bin/env ruby -wKU
#taxIncreaseOrNot.rb
question = "Is it a tax increase?"
currentTax = 5
bushTaxCut = -2
newTax = currentTax - bushTaxCut
taxChangeAmmount = newTax - currentTax
if newTax > currentTax
taxChange = "increase"
puts question
puts "You will now pay $#{newTax}, which is a tax #{taxChange} of $#{taxChangeAmmount} from $#{currentTax}. What the tax was in the past is not information nessasary to answer the question."
else
puts "Nancy is right. $#{newTax} is somehow not greater than $#{currentTax}. However, the laws of logic and mathematics are no longer in effect - so we're all totally screwed."
end
Which returns:
