Question: we must use conditionals, with either flowchart or pseudocode Now, it's your turn. Write a script that computes parking fees for a garage with the
we must use conditionals, with either flowchart or pseudocode 
Now, it's your turn. Write a script that computes parking fees for a garage with the fee structure given below. Your script should be named parking fee, take a single input argument (hours parked in garage), and return a single output argument (total fee for parking) A lost ticket is signified using a negative value for hours Partial hours are charged as full hours, e.g. 5 hours and 20 minutes is charged as 6 hours. Thus, the output should always be an integer. PARKING RATES 0-2 Hours 2-4 Hours Each Additional Hour$1.00 Maximum Daily Charge $24.00 parked for 4 hours, pay s7 Lost Ticket Charge $36.00 parked f PAY AT FRONT DESK PRIOR parked for 20 hours, pay $23 $4.00 $3.00 Examples (understand the PARKING FEES ) parked for 2 hours, pay $4 parked for 3 hours, pay $7 for 5 hours, pay $8 TO DEPARTURE parked for 22 hours, pay $24 parked for 123 hours, pay $127 parked for 123 hours but lost the ticket, pay $163 This is NOT an easy task. You MUST think before you code. You should discuss with your team how to approach the problem and sketch out a plan (e.g. in pseudocode or flow diagram) for how to solve it. This task may take you 20 to 45 minutes. It will take much longer if you do not think before you code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
