parking fee
unknown
plain_text
a year ago
519 B
2
Indexable
Never
type=str(input("type of vehicle is")) hours=int(input("number of hours spent in the park is")) if type == '1': if hours <= 3: fee=0.70*hours else: fee=0.70*3+2.50*(hours-3) elif type == '2': if hours <= 3: fee=1.50*hours else: fee=1.50*3+2.00*(hours-3) elif type == '3': if hours <= 2: fee=2.50*hours else: fee=2.50*2+2.50*(hours-2) print('The total fee: ${:.2f}'.format(fee))