Practice problem
Step Functions
You've decided to rent a car to take a trip around the city. The car rental service has the following prices:
for the first hour
for each additional half hour, rounding up
If you drive around for hours before returning the car, how much money does the rental company charge?