81 977
Assignments Done
98,6%
Successfully Done
In November 2019

# Answer to Question #16333 in Python for david

Question #16333
Serendipity Booksellers has book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: &bull; If a customer purchases 0, he or she earns 0 points &bull; If a customer purchases 1, he or she earns 5 points &bull; If a customer purchases 2, he or she earns 7.5 points per book &bull; If a customer purchases 3, he or she earns 10 points per book &bull; If a customer purchases 4 or more books, he or she earns 15 points per book &bull; Write a program that asks the user to enter the number of books that he or she has purchased this month and displays the number of points awarded. &bull; The output should state the number of books and the total points awarded
1
2012-10-12T11:23:32-0400
num = input (&quot;Please enter number of books: &quot;)

points = 0

if num
== 1:
points = 5 * num
elif num == 2:
points = 7.5 * num
elif num ==
3:
points = 10 * num
elif num &gt;= 4:
points = 15 * num

print
(&quot;Points: &quot;+str(points))
print (&quot;Books: &quot;+str(num))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!