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?
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?
Comment