• 09-01-2012, 05:06 PM
orgmiri
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..

hope you guys can help me:(-:
• 09-01-2012, 05:08 PM
Fubarable
Quote:

Originally Posted by orgmiri
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..

What you've done is to post your entire assignment without showing what work you've done, without asking a specific question, and that is not how to get help here (or at any forum). For one, we have no idea what you're having trouble with, so we won't know how to advise you. For another, if you don't at least try to solve what you can first, you're cheating yourself out a valuable part of your learning experience, and finally it suggests that you want someone to post a complete solution, thereby doing your homework for you, and I know that this was not your intent.

So please try to solve as much of the problem that you can first, then post what you've done using code tags (see my signature), and then ask a specific question. Do this and you'll have many folks willing to help you.

Much luck!
• 09-01-2012, 05:14 PM
orgmiri