A parking garage charges a $2.00 least expense to stop for as long as three hours. The carport charges an extra $0.50 every hour for every hour or part thereof in the abundance of three hours. The most extreme charge for any random 24-hour time frame is $10.00. Suppose that no vehicle leaves for longer than 24 hours one after another. Write a C++ source code that computes and prints the parking charges for every one of 3 clients who left their vehicles in this carport yesterday. You ought to enter the hours parked for every client. Your program should print the outcomes in a perfect tabular form and ought to ascertain and print the aggregate of yesterday's receipts. The program should utilize the function "CalculateCharges" to decide the charge for every client in the following format.
Answers
Answer:
A parking garage charges a R12.00 minimum fee to park for up to three hours. The garage charges an additional R0.90 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is R20.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of 3 customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday's receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format