write a program that asks the user to enter today's sales rounded to the nearest $100 for each of three stores. the program should then display a bar graph comparing each store's sales. create each bar in the graph by displaying a row of astericks. each asterick should represent $100 of sales. in c++

I'll ask it again. What's your question?

write a program that asks the user to enter today's sales rounded to the nearest $100 for each of five stores. the program should then display a bar graph comparing each store's sales. create each bar in the graph by displaying a row of astericks. each asterick should represent $100 of sales

In Visual Basic

Sure! Here's an example program that prompts the user to enter sales for three stores and then displays a bar graph to compare their sales using asterisks. This program is written in C++:

```cpp
#include <iostream>
using namespace std;

void displayBarGraph(int storeNum, int sales) {
cout << "Store " << storeNum << ": ";
for (int i = 0; i < sales / 100; i++) {
cout << "*";
}
cout << endl;
}

int main() {
int store1Sales, store2Sales, store3Sales;

cout << "Enter today's sales for Store 1 (rounded to the nearest $100): ";
cin >> store1Sales;

cout << "Enter today's sales for Store 2 (rounded to the nearest $100): ";
cin >> store2Sales;

cout << "Enter today's sales for Store 3 (rounded to the nearest $100): ";
cin >> store3Sales;

cout << endl;

displayBarGraph(1, store1Sales);
displayBarGraph(2, store2Sales);
displayBarGraph(3, store3Sales);

return 0;
}
```

Explanation:
1. We start by defining a function `displayBarGraph` that takes the store number (`storeNum`) and sales amount (`sales`) as parameters. This function displays a label for the store number and then prints a row of asterisks, each representing $100 of sales.
2. In the `main` function, we declare integer variables `store1Sales`, `store2Sales`, and `store3Sales` to store the sales amount for each store.
3. We prompt the user to enter the sales amount for each store using `cout` and read the input using `cin`.
4. After reading the sales amounts, we call the `displayBarGraph` function three times, passing the store number and sales amount for each store as arguments.
5. The `displayBarGraph` function prints the label for the store number and then loops from 0 to `sales / 100` (the number of asterisks needed) and prints an asterisk for each iteration.
6. Finally, we end the program by returning 0 from the `main` function.

When you run the program, it will display a bar graph representing the sales for each store using asterisks. Each asterisk represents $100 of sales.