Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python A bookstore is organising an online sale. All books on the website are now $15 + 10% GST. If the total price is higher
Python A bookstore is organising an online sale. All books on the website are now $15 + 10% GST. If the total price is higher than $100, the shipping is free, else a $10 fee is added. Write a Python program to calculate the total price, based on how many books are ordered. Your program will take the number of books bought as user input, and will output the final price, including GST and shipping. Note: i. You must use variables for all values, including constant values. ii. You must name the variables meaningfully (e.g. gst, total_price, shipping_fees, number_of_books). Avoid single letter variable names. Two examples of the program being run are given below. Follow the formatting used in the examples for asking the user for values and printing the result. User input is indicated in the examples with bold and italicized font. Example 1: Enter the number of books you want to buy: 2 Shipping fees = $ 10 The total cost for your order today is: $ 43.0 Example 2: Enter the number of books you want to buy: 10 Free shipping The total cost for your order today is: $ 165.0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started