Best Answer

I'd first add an input line of some sort, prompting the user to enter the amount.

Next, take the text that's entered and give an error if it's not numeric.

If it is numeric text, convert it to a real number.

Then depending on whether or not the two separate taxes are supposed to be compounded, either multiply it by 1.04 and again by 1.02, or simply multiply it by 1.06 (the former of the two options if it's compounded).

Finally, output the number, rounding to the nearest hundredth.

Q: How would you design a program that asks a user to enter the amount of a purchase and calculate a state sales tax of 4 percent and county tax of 2 percent and give the total of the sale?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

33.7425, which will round to 33.74 ; percent off means to calculate the percentage, then subtract from the original amount.

You have to calculate 400,000 x 1.5 / 100. (Percent means hundredths; the idea is to calculate 1.5 hundredths of the amount.)

56.72

You calculate 0.05 percent of the volume of the base liquid, then add that amount of whatever you want to dilute in this quantity.

'Percent off' means you calculate the percent, then subtract from the original amount. So 24 percent of 995.00 = 238.80, then subtract from 995.00 to get 756.20

Related questions

$54.85

8.25

percent increase=(new amount-original amount) _____________________ original amount

take the amount of the sales tax and divide it by the percent of the tax... i was on that same question on my hw

Divide 350 by 79% .

There is really no way to calculate nickel percent in chocolates. There will be a different amount in all kinds of chocolates and none in some.

You calculate the total amount of whatever it is that you want to find the silicon abundance for. Then you calculate the amount f silicon in that. Then percentage abundance of silicon = 100*amount of silicon/total amount Typically the amount would be measured as the mass.

-- Divide the new amount by the original amount. -- Multiply the quotient by 100. -- Subtract 100 from the product. -- The difference is the percent reduction.

Two percent is equal to .02 so you can multiply by that amount. For example 2% of 397 is 7.94

33.7425, which will round to 33.74 ; percent off means to calculate the percentage, then subtract from the original amount.

You have to calculate 400,000 x 1.5 / 100. (Percent means hundredths; the idea is to calculate 1.5 hundredths of the amount.)

56.72