Results 1 to 4 of 4
  1. #1
    orgmiri is offline Member
    Join Date
    Sep 2012
    Posts
    3
    Rep Power
    0

    Question Please help me..I am newbie..how to do this question

    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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Please help me..I am newbie..how to do this question

    Quote Originally Posted by orgmiri View Post
    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. #3
    orgmiri is offline Member
    Join Date
    Sep 2012
    Posts
    3
    Rep Power
    0

    Default Re: Please help me..I am newbie..how to do this question

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

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Please help me..I am newbie..how to do this question

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

Similar Threads

  1. Absolute newbie question
    By anarelle in forum Java Servlet
    Replies: 1
    Last Post: 02-27-2012, 12:09 PM
  2. newbie question
    By palcente in forum New To Java
    Replies: 4
    Last Post: 02-01-2012, 11:41 PM
  3. Probably a newbie question.... :P
    By gblax123 in forum New To Java
    Replies: 9
    Last Post: 02-23-2011, 11:21 PM
  4. Newbie question
    By MrNiceGuy in forum New To Java
    Replies: 8
    Last Post: 11-12-2010, 06:29 AM
  5. newbie question
    By ronguilmet in forum New To Java
    Replies: 2
    Last Post: 11-16-2009, 03:37 AM

Posting Permissions

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