java codes connecting database-A parking garage charges $2.00 minimum fee to park for up to three hours. Garage charges the extra $0.50 per hour for each hour or part thereof in excess of three hours. Suppose that no car parks for longer than 24 hours at time. Write down the application which computes and shows parking charges for each customer who parked in garage yesterday. You must enter hours parked for each customer.
The program must show the charge for current customer and must compute and show the running total of yesterday's receipts. Program must use method calculateCharges to find out charge for each customer.