Question: write C++ code that reads sales data from a file named StoreSales.txt, and then creates a bar graph comparing each stores sales. Create each bar
write C++ code that reads sales data from a file named StoreSales.txt, and then creates a bar graph comparing each stores sales. Create each bar in the graph by displaying a row of asterisks, where each asterisk represents $500 of sales. It should look similar to below: SALES BAR CHART (Each * = $500) Store 1: ** Store 2: ****** Store 3: ** Store 4: ********* Store 5: ****** Assume that you do not know how many stores data is stored in the file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
