Here's my program:
Display “Enter the amount of the purchase.â€Â
Input amount
Set state = amount * .04
Set county = amount * .02
Set tax = state + county
Set total = amount + tax
Display “The amount of the purchase is $â€Â, amount
Display “The state sales tax is $â€Â, state
Display “The county sales tax is $â€Â, county
Display “The total sales tax is $â€Â, tax
Display “The total of the sale is $â€Â, total
My question is whether or not I need to set amount equal to 0 at the beginning.
Tags: