Question: Write a program that produces a bar graph comparing each store's sales. The program should read today's sales for five stores from a file, Create

 Write a program that produces a bar graph comparing each store's

Write a program that produces a bar graph comparing each store's sales. The program should read today's sales for five stores from a file, Create each bar in the bar graph by displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an example of the contents of the input file: 1000120018008001900 Here is an example of the program's output in Sales. txt: SALES BAR CHART ( Each =$100) Store 1= Store 2= Store 4= Store 5= Hint: To create a bar, use the function string(int number, char symbol). For example, the function call string (2,,) creates the string (

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 Databases Questions!