Ask Question
22 June, 05:05

Write a Python 3 program that will compute the total cost of an amazon purchase. The program should ask the user to enter the amount of a purchase, then calculate a 12% shipping and handling fee and NJ sales tax (7%). Your program should show the itemized bill.

+5
Answers (1)
  1. 22 June, 05:34
    0
    price = float (input ("Enter amount of a purchase: "))

    shipping_price = 0.12 * price

    NJ_sales_Tax = 0.07*price

    print ('The price of item is {}'. format (price))

    print ('The Cost of Shipping is {}'. format (shipping_price))

    print ('New Jessey Sales Tax is {}'. format (NJ_sales_Tax))

    total_bill = shipping_price+NJ_sales_Tax+price

    print ('Total Bill {} '. format (total_bill))

    Explanation:

    Prompt User for input of the amount of purchase Calculate the shipping cost (12% of purchase price) Calculate the tax (7% of the purchase price) Use python's. format method to output an itemized bill
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a Python 3 program that will compute the total cost of an amazon purchase. The program should ask the user to enter the amount of a ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers