I'm having a difficult time figuring out how to map this problem into a flowchart. The instructor is requiring us to use flowgorithm to create a flowchart for this problem, but I don't even know where to begin. Please help!
A parking garage charges a $20.00 minimum fee to park for up to three hours. The garage charges an additional $5.00 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $50.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 today. 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. You should create a function named calculateCharges to determine the charge for each customer.
Competencies Create modular programs using C functions Create new C functions Pass information between functions Correctly implement function calls and returns
Questions are answered below, please comment if any doubts:
Note: since you are requested for only flow chart the program has not been provided
Flowgorithm is a tool that can be downloaded from its official
page. Just install and run the program. A window will open, now
draw the flowchart as given below, the flow chart I drawn and
imported from flowgorithm tool is given below, the flow chart can
be run on this tool also to check the correctness of flowchart, a
test run is also provided at the end.
Flow chart generated in flowgorithm:
Console Output:
Get Answers For Free
Most questions answered within 1 hours.