Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please explain your work in details step bystep. A parking garage charges a $2.0

ID: 3617529 • Letter: P

Question

please explain your work in details step bystep. A parking garage charges a $2.0 minimum fee to park for up tothree hours. The garage charges an additional $0.50 per hour foreach hour or part thereof in excess ofthree hours. The maximun charge for any given 24-hour period is$10.00. Assume that no car parks for longer than 24 hours at atime. Write a program that calculates and prints the parkingcharges for each of the three customers who parked their cars inthis garage yesterday. You should enter the hours parked for eachcustomer. You program should print the results in a neat tabularformat and should calculate and print the total of yesterday'sreciepts. The program should use the function calculatecharges todetermine the charge for each customer. Your outputs should appearin the following format: Car           Hours            Charges 1                   1.5                 2.00 2                   4.0                  2.50 3                   24.0               10.00 Total            29.5               14.50 please explain your work in details step bystep. A parking garage charges a $2.0 minimum fee to park for up tothree hours. The garage charges an additional $0.50 per hour foreach hour or part thereof in excess ofthree hours. The maximun charge for any given 24-hour period is$10.00. Assume that no car parks for longer than 24 hours at atime. Write a program that calculates and prints the parkingcharges for each of the three customers who parked their cars inthis garage yesterday. You should enter the hours parked for eachcustomer. You program should print the results in a neat tabularformat and should calculate and print the total of yesterday'sreciepts. The program should use the function calculatecharges todetermine the charge for each customer. Your outputs should appearin the following format: Car           Hours            Charges 1                   1.5                 2.00 2                   4.0                  2.50 3                   24.0               10.00 Total            29.5               14.50

Explanation / Answer

please rate - thanks #include #include #include using namespace std; double calculateCharges(double); int main() {int i; double hours[3], thours=0,charge[3],tcharge=0,portions; cout.setf(ios::fixed,ios::floatfield); cout.precision(2); for(i=0;i