1. Member
Join Date
Sep 2012
Posts
3
Rep Power
0

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

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!

3. Member
Join Date
Sep 2012
Posts
3
Rep Power
0

actually I don't understand this question
Don't know what to use (maybe nested loop or if else..can you tell me )

I would first work on the calculateCharges method. What input (parameters) do you think this method should take?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•