Question: 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.
Write a program that asks the user to enter today’s sales for five stores. The program should display a bar chart comparing each store’s sales. Create each bar in the bar chart by displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an example of the program’s output:
![Enter today's sales for store 1: 1000 [Enter] Enter today's sales for](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1664/1/9/4/375633197470d0b61664194374468.jpg)
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: 1800 [Enter] Enter today's sales for store 4: 800 [Enter] Enter today's sales for store 5: 1900 [Enter] SALES BAR CHART Store 1: **** Store 2: *** Store 3: *** Store 4: ***** Store 5: *** *** * *
Step by Step Solution
3.55 Rating (162 Votes )
There are 3 Steps involved in it
import javautilScanner public class SalesGraph public static void mainString ar... View full answer
Get step-by-step solutions from verified subject matter experts
