Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing The Art and Science of Assurance Engagements

Authors: Alvin A. Arens, Randal J. Elder, Mark S. Beasley, Ingrid B. Splettstoesser

12th Canadian edition

133098230, 978-0132791564, 132791560, 978-0133098235

More Books

Students also viewed these Programming questions

Question

Describe the criteria for an effective budget.

Answered: 1 week ago

Question

What is a spendthrift clause and why is it included in a trust?

Answered: 1 week ago