Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

Q11

Debug:

#include using namespace std;

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions