Question: A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50 per hour or part thereof over
A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50 per hour or part thereof over 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 will calculate and print the parking charges for each of N amount of (you program should request the amount of customers first) customers who parked their cars in this garage on any given day. You should enter the hours parked for each customer. Your program should print the results in a tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer. Your outputs should appear in the following format: Your program should include: proper ease, variable names (meaningful and use conventions) proper organization, indentation, white space, and comments Has the right inputs and outputs, computes correct results. is efficient Use a loop that gives the user the option of do another calculation or quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
