Boat Rental Fees
Rentals costs $2.50 per 30 minutes. Count minutes from 30 to 180 in steps of
30 minute increments. Based on the minutes, display number of hours and number
of minutes in the form of:
- hours:minutes
- Please note the colon above.
- $ Fee
- Display the cost for the rental at each time as well.
- Give a title and heading to your output.
- Using a for loop, go from 30 minutes to 180
minutes in
30 minute increments.
- Use 1 digit for the hours, but 2 digits for the minutes. You will
need to display two 0's at the hour marks.
- Calcuate the cost of the rental based on the rate of $2.50 for each 30 minutes.
Use two digits for the pennies when displaying the output.
- Use tabs to align the output.
Sample output:
Larry's Boat Rental
Time Fee
0:30 $ 2.50
1:00 $ 5.00
.
.
3:00 $ 15.00