Question: Code in C++ Sales program Write a program that asks the user to enter todays sales for five stores. The program should display a bar
Code in C++
Sales program
Write a program that asks the user to enter todays sales for five stores. The program should
display a bar chart comparing each stores sales. Create each bar in the bar chart by displaying
a row of asterisks. Each asterisk should represent $100 of sales.
Enter today's sales for store 1: 1000 [Enter]
Enter today's sales for store 2: 1200 [Enter]
Enter today's sales for store 3: 1300 [Enter]
Enter today's sales for store 4: 1800 [Enter]
Enter today's sales for store 5: 2200 [Enter]
Here is an example of the programs output:
SALES BAR CHART
(Each * = $100)
Store 1: **********
Store 2: ************
Store 3: *************
Store 4: ******************
Store 5: **********************
.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
