383534181-d Int (Input (Enter The Value of Di
383534181-d Int (Input (Enter The Value of Di
383534181-d Int (Input (Enter The Value of Di
t1 = (0.75 * d)/40
t2 = (0.25 * d)/55
total= t1+t2
hr = int(total)
min = int(round(total - hr,2) * 100)
print("Time taken to travel",d,"miles is",hr,"hours",min,"minutes")
print("\n**************BILL***************")
print("Quantity Sold : \t", quantity)
print("Price per Item : \t Rs.", value)
print("---------------------------------\n")
print("Amount : \t Rs.", amt)
print("Discount : \t Rs.", round(discounted_amt,2))
print("Discounted Total : \t Rs.", round(discounted_total,2))
print("Tax : \t Rs.", round(tax,2))
print("---------------------------------\n")
print("Total Amount : \t Rs.", round(bill,2))
rn = r / 255.0
gn = g / 255.0
bn = b / 255.0
if rn > gn and rn > bn:
w = rn
elif gn > rn and gn > bn:
w = gn
else:
w = bn
if r == 0 and g == 0 and b == 0:
c = m = y = 0
else:
c = (w - rn) / w
m = (w - gn) / w
y = (w - bn) / w
k = 1 - w