# a parking garage program

• 12-24-2011, 01:55 PM
a parking garage program
A parking garage charges a \$2.00 minimum fee to park for up to three hours. The garage
charges an additional \$0.50 per hour for each hour or part thereof in excess of three hours.
The maximum charge for any given 24-hour period is \$10.00. Assume that no car parks for
longer than 24 hours at a time. Write an application that calculates and displays the parking
charges for each customer who parked in the garage yesterday. You should enter the hours
parked for each customer. The program should display the charge for the current customer and
should calculate and display the running total of yesterday’s receipts. The program should use
the method calculateCharges to determine the charge for each customer.
guys I couldn't find the algorithm some one can help me
• 12-24-2011, 02:35 PM
Norm
Re: a parking garage program
That looks like high school algebra with a few if statements for the extra charges.
Take each sentence and write the equation for the computation.
• 12-24-2011, 03:03 PM