0% found this document useful (0 votes)
39 views1 page

Parking Fee Ticketing

The parking fee ticketing program calculates a customer's parking fee based on the time spent parking and displays the fee, payment amount, and change due. It takes in the time the customer entered and exited the parking lot, the cash payment, and uses these inputs to compute the parking hours, fee based on an hourly rate, and returns the customer's change. It has been tested with sample inputs and outputs to validate its core functions.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Parking Fee Ticketing

The parking fee ticketing program calculates a customer's parking fee based on the time spent parking and displays the fee, payment amount, and change due. It takes in the time the customer entered and exited the parking lot, the cash payment, and uses these inputs to compute the parking hours, fee based on an hourly rate, and returns the customer's change. It has been tested with sample inputs and outputs to validate its core functions.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Parking Fee Ticketing Program Description

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.

You might also like