I need help writing a program.. I have no idea how to start off ...can you please help me...I am very lost :sad: Thank you soo much if you can help because I am extremely confused.
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 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 three customers who parked their cars in this garage yesterday. You should enter the number of hours parked for each customer. Your program should print the results in a net 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.
-Use a for loop to prompt the user for the number of hours parked for each of the three customers.
-Declare variables to store the total number of hours and the total charges for each customer
-The variable for all charges and numbers of hours should be of type double
-Function calculateCharges should use a nested if/else structure to determine the customer charge.