A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage
Question:
A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour, or part thereof, in excess 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.
Write a program that calculates and displays the parking charges for each customer who parked in the garage on a given day and displays the running total of that day’s receipts.
Specification-----
Create a ParkingCharges classCreate a member function double parking charges(double hours).
Accepts the hours parked as an argument.
Calculates the parking charge based on the hours.
Returns the parking charge.
Add other data members and member functions as appropriate.
Separate the class into both interface (.h) and implementation (.cpp) files.
Write an application the uses the ParkingCharges class and does the following:
Enter the hours parked.
Calculate and display the charges for this customer.
Add charges to the running total and display the running total.
Continue as long as there is another customer.
College Algebra Graphs and Models
ISBN: 978-0321845405
5th edition
Authors: Marvin L. Bittinger, Judith A. Beecher, David J. Ellenbogen, Judith A. Penna