Question: In Java, (Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours. The garage charges an additional $0.50 per
In Java,
(Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours. The garage charges an additional $0.50 per hour for each hour or part thereof inexcess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write an application that calculates and displays the parking charges for each customer who parked in the garage yesterday. You should enter the hours parked for each customer. The program should display the charge forthe current customer and should calculate and display the running total of yesterdaysreceipts. It should use the method calculateCharges to determine the charge for eachcustomer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
