182k views
0 votes
Read the following code:

# Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .065

There is an error in the code. How should the code be revised in order to get the correct output?

totalCost = itemA * 0.065
totalCost = (itemA) + 0.065
totalCost = itemA * ( itemA + 0.065)
totalCost = itemA + (itemA * 0.065)

1 Answer

2 votes

Answer:

answer is D

Step-by-step explanation:

i took the test and sales tax is just multiple the tax with the price of the item

User Ricardas
by
5.0k points