Question: Write a recursive function progress_bar(completion_percent) that takes an int completion_percent. The function should return a string progress bar representing the completion percentage. The beginning and

Write a recursive function progress_bar(completion_percent) that takes an int completion_percent. The function should return a string progress bar representing the completion percentage. The beginning and end of the completion bar should be square brackets [ and ]. Each ten percent of completion will be represented by one character in the progress bar. Thus, every progress bar should be ten characters long. Use hashmarks # to represent the completion percentage and use blank spaces to represent the remaining work to be completed. You should always 'round down' the completion number to the nearest ten (see hint below). You do not need to deal with inputs below 0 or above 100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!