OneCompiler

Finished Brokenness Calculator

243


--Only edit the values of wallet and purchase, be careful if you choose
--to edit the tax multiple.
Wallet = io.read()

Purchase= io.read()

--You shouldn't have to edit anything here, unless you want to change
--the tax multiple.

Tax = Purchase * 0.06625

TaxedPurchase = Purchase + Tax

Brokeness = Wallet - TaxedPurchase

if Brokeness < 1 then
print "you are broke."
else print (Brokeness)
end