Question
Sales Bar Chart: Your program will ask the user to specify the number of stores in your region. Then the user will enter the sales
Sales Bar Chart: Your program will ask the user to specify the number of stores in your region. Then the user will enter the sales for each store. The program must display a bar graph comparing each stores sales. The bar graph should implement a row of asterisks, each asterisk representing $100 of sales.
Your program should use:
1. for loops
2. arrays
a. new operator
b. delete operator
The Specs: 1. Your solution should prompt the user for the number of stores. 2. Your solution should prompt the user for the sales of each store. 3. The report should create a string of * characters representing the sales, a. Each * would represent $100 in sales.
Q11
Debug:
#include
int main() { void countDown(int, int); int high, low; cout " cin >> high; cout "; cin >> low; if(high 1 X How many stores? 6 sales for store #1: 1500 sales for store #2: 1489 sales for store #3: 2400 sales for store #4: 1810 Sales for store #5: 3160 Sales for store #6 : 2990 SALES BAR CHART (Each * = $100) Store1:*** Store 2:**** Store 3:* Store 4: Store 5:** Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started