Lab#9 FinalCost

# The program calculate the final cost
# Given the price or cost and the sales tax percentage

# The program should ask the user for
#        1- The price of the item(s)
#        2- The sales tax percentage
#
# Finally the program should calculate the final cost and display it.

price=float(input(“Inter the price/cost : “))
tax_percentage=float(input(“Inter the sales tax percentage : “))
total_tax=(price*tax_percentage)/100
final_cost=price+total_tax

print(“This is the final cost: “, final_cost)

Leave a Reply

Your email address will not be published.