Create a program that calculates the total for a purchase at a bookstore. Put the lines of code in order to create the following program. Sample output: Bookstore Calculator Price of Book 29.99 Tax...

Create a program that calculates the total for a purchase at a bookstore. Put the lines of code in order to create the following program. Sample output: Bookstore Calculator Price of Book 29.99 Tax percent 8.75 Tax amount 2.63 Total amount 32.61 1. tax_amount = round(book_price * (tax_percent / 100), 2) 2.print("Bookstore Calculator") 3. print("Tax amount: ", tax_amount) 4. tax_percent = float(input("Tax percent: ")) 5. # get input from the user 6. # display a welcome message 7. total = round(book_price + tax_amount, 2) 8. print("Total amount:", total) 9. # display the results 10. book_price = float(input("Price of book: ")) 11. # calculate tip and total amount
Nov 14, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here