Question: Problem in c++ A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per
Problem in c++
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 days receipts.
Specification
Create a ParkingCharges classCreate a member function double parkingCharges(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.
Test! Test! Test!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
