User:Darija Medic/technicalcourse/math1
3.
time = 6*60*60 + 52*60
print "time", time
first_run = 8*60 + 15
second_run = 7*60 + 12
third_run = 8*60 + 15
dd_time = first_run*1 + second_run*3 + third_run*1
print "dd_time", dd_time
new_time = time + dd_time
print "new_time", new_time
hours = new_time / (60*60)
minutes = (new_time - hours*60*60) / 60
seconds = new_time - hours*60*60 - minutes*60
print hours, ":", minutes, ":", seconds
print "hours", new_time / (60*60)
print "minutes", (new_time % (60*60)) / 60
2.
discount = 24.95 * 40/100.0
print discount
discount_price = 24.95 - discount
print "discount_price", discount_price
price = (discount_price + 3) + (discount_price+0.75)*59
print "price", price
print "seconds", new_time % 60