Question: Problem 3 Write a recursive function progress _ bar ( completion _ percent ) that takes an int completion _ percent. The function should return
Problem
Write a recursive function progressbarcompletionpercent that takes an int completionpercent. 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 or above
in the digisum or vertical practice problems for an idea of how to round down.
Sample usage:
completion progressbar
completion
##
completion progressbar
completion
###
completion progressbar
completion
#######
completion progressbar
completion
##########
completion progressbar
completion
#########
completion progressbar
completion
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
