Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the total wholesale cost for 60 copies? its not hard to write but since there is no solution in the book id like you to post me your solutions (only the final cost not program) so i can confront and see if i did it right. Thank you all very much.
def MicroBotBook(Price,Discount,Shipping1,ShippingRest,Copies): print 'Wholesale Cost of', Copies, 'copies will be US$:' print ((Copies*Price*(1-Discount))+(Shipping1+(Copies-1)*ShippingRest))
Hi @MicroBot Sorry, u wanted just the answer and not the program. It works out to US$ 945.45. Hope i am right.
well it matches my answer so i belivev we r both right. gj thank you.
Pl also c my reply to query about quadratic equation by Monti. Warm regards. Enjoy the weekend and be ready for Monday class.
@MicroBot, Pl., what book u r referring to in this question? Is it available in ebook format?
ah its the free ebook that they suggest . http://www.greenteapress.com/thinkpython/thinkpython.pdf
Join our real-time social learning platform and learn together with your friends!