The program i have to write is a garage problem where the user enters the names of a couple people, who have used the garage, and how long they stayed parked, and what they have to pay for that certain amount of time.
This is a program i have to do for my c++ class. If someone can please help me with the source code i would greatly appreciate it, because i dont understand at all.... thanks
A parking garage charges a $2.00 minimum fee 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 at a time. Write a program that calculates and prints the parking charges for each of the customers who parked their cars in this garage yesterday. You should enter the customer’s name and the number of hours parked. 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 output should appear in the following format: