Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started