Making a parking fee calculator using DateTimePickers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • borla123
    New Member
    • Oct 2009
    • 1

    Making a parking fee calculator using DateTimePickers

    Hi-

    I'm trying to make an application that computes the fee for parking a car in a parking garage. The user should provide the Time In: and Time Out: values by using DateTimePickers . The application should calculate the cost of parking in the garage for the specified amount of time. Parking costs three dollars an hour. When calculating the total time spent in the garage, I will ignore the seconds value but the minutes value is treated as a fraction of an hour (1 minute is 1/60 of an hour). No overnight parking is allowed.

    So I will accept four "int"

    1) the hour value of time in,
    2) the minute value of time in,
    3) the hour value of time out
    4) the minute value of time out

    how do I "extract" these four values above?

    Any ideas on how this program can be accomplished?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    When it comes to homework questions you need to try some one your own first, then show the volunteers here what you have done and where you are stuck.
    That's part of the guidelines about posting school work.

    Comment

    Working...