Our download script just sits there. I want a text barthat shows how far along it is. Give it a percent and itdraws the bar. Twenty characters wide looks about right.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
# characters is worked out from the percent. Nothing about the bar is typed in by hand: a loop draws it, one character at a time, with Console.Write.* and /. Activity 1.6's integer division makes percent / 100 * 20 equal to 0 for every percent under 100.[....................] 0%[#####...............] 25%[##########..........] 50%[####################] 100%Count the characters between the brackets on every line. There should be twenty each time.
Your requirements list and your program file, named cc-progress-bar.