Parking Meter Time Chart
Parking costs 25 cents per 15 minutes. Count minutes from 15 to 240
in steps of 15 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 parking meter at each as well.
- Give a title and heading to your output.
- Using a for loop, go from 15 minutes to 240
minutes in 15 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 meter based on the rate of 25 cents for
each 15 minuts. Use two digits for the pennies when displaying the
output.
- Use tabs to align the output.
Sample output:
Larry's Parking Meter
Time Fee
0:15 $ 0.25
0:30 $ 0.50
0:45 $ 0.75
1:00 $ 1.00
.
.
.
.
4:00 $ 4.00