Due: Monday, Sept 22nd by 11:59 PM
If you have a solution open in Visual Studio, close it (File->Close Solution).
Download CS200_Lab10.zip. Import it into Visual Studio (File->Import...).
Add your code to the source file called BarGraph.c.
Write a program that prompts the user to draw one or more bars of a bar graph.
To draw each bar, the program should prompt the user for a length, and then draw a that many equals ("=") characters. After drawing each bar, the program should ask whether or not to continue, and read a single input character. If the user enters a 'Y' or 'y' character, then the program should continue. If the user enters any other character, the program should finish.
Example of running the program (user input in bold):
length? 20====================another? ylength? 65=================================================================another? Ylength? 51===================================================another? ndone
You will need nested loops. The outer loop will have the code to prompt for and draw a single bar. The inner loop will draw each character in a single bar.
For each loop, you will need to choose between a while and a do/while loop. The rule is that if the loop should be able to execute 0 times, it should be a while. If it must be guaranteed to execute at least once, it should be a do/while.
You should start with a program that prompts for and draws a single bar. That code will then become the body of the outer loop that draws however many bars the user requests.
When you are done, choose Tools->Submit to submit your completed lab to the server. You will need to enter your Marmoset username and password.
If the Tools->Submit option does not work, create a zip file containing the files in your project, and upload it to the submission server as lab10. The server URL is