Parking Fee Ticketing
Parking Fee Ticketing
The program computes the customers parking fee per hour and their change.
Program Features
Has a simple interface where six text fields are available for the computation of the parking fee per hour and the appropriate change. There is a clear and a compute button.
Input
Time in => the time when the customer enters the parking lot Time out => the time when the customer leaves the parking lot Cash rendered => the cash given by the customer
Output
Parking Hours => the total hours the car was parked. Parking Fee => the total fee for the parking. Customers Change => the change of the customer.
Processing
1.compute the number of hours the car spent in the parking lot a. Subtract the time out with the time in in minuets. b. Divide the total number of minuets. by 60 to find the total number of hours 2. Multiply the total number of hours with the rate per hour. 3.Compute the Customers change a. Subtract the Customers Payment with the Parking Fee 4. Display the results
Test Case 1
Parking Hours: 2 Hours Parking Fee: 80 pesos Customers Payment: 100 pesos Click the Compute Button Customers Change: 20 pesos
Test Case 2
Time in: 9:10 AM Time out: 2:30 PM Parking hours: 5 Hours and 20 minuets. Parking Fee: 200 pesos Customers payment: 200 pesos Click the clear Button Output: all fields should be cleared.
Test Case 3
Time In: 1 PM Time Out: <blank> Parking Hours: <blank> Parking Fee: <blank> Customers payment: <blank> Click the Compute button Output: an incomplete data message should appear.