Answer:
$36.50
Explanation:
You want to know Mr. Garcia's parking charge if he parked from 5 pm to 11:15 pm, and charges are $3.50 for each half-hour or part thereof, and $5 for the first 2 hours.
Time
The time Mr. Garcia was parked was ...
11:15 pm - 5 pm = 6:15 hours
That is 2 hours plus 4 hours and 15 minutes.
The 4 hours and 15 minutes will count as 8+1 = 9 half-hours.
Charges
Then Mr. Garcia's parking charges are ...
first 2 hours: $5
9 half-hours: $3.50 × 9 = $31.50
Total = $5 + 31.50 = $36.50
Mr. Garcia paid $36.50 for parking.
__
Additional comment
At the half-hour rate, the first 2 hours would cost 4·$3.50 = $14. The actual charges are $9 less. So, we could compute the total charge as $3.50 for 13 half-hours, less $9. This is shown in the attachment.
In the attached, -int(-x) performs the ceiling( ) function, rounding up 12.5 to 13.
<95141404393>