Question: What is wrong with the following code that calculates the cost of an item with tax? 1 . tax = 0 . 0 6 2
What is wrong with the following code that calculates the cost of an item with tax?
tax
cost floatinputHow much does your item cost?
whilecost :
newcost cost cost tax
printTotal cost is $ newcost
printGoodbye
Multiple Choice
The calculation on line is incorrect.
The tax amount is incorrect.
Line should be indented.
The value of cost never changes so this will be an infinite loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
