Asks the user to enter today''s sales for five stores


Write a java 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 display. ing a row of asterisks. Each asterisk should represent $100 of sales. Here is an example of the program's output.
OUTPUT EXAMPLE:
Enter today's sales for store 1:4100
Invalid sales amount :4100 
Sales must be multiple of 100 in range 0-4000, inclusive. 
Enter today's sales for store 1:1010 
Invalid sales amount :1010
Sales must be multiple of 100 in range 0-4000, inclusive.
Enter today's sales for store 1:-100
Invalid sales amount :-100
Sales must be multiple of 100 in range 0-4000, inclusive
Enter today's sales for store 1: 1000 
Enter today's sales for store 2: 1200
Enter today's sales for store 3: 1800 
Enter today's sales for store 4: 800 
Enter today's sales for store 5:1901
Invalid sales amount :1901
Sales must be multiple of 100 in range 0-4000, inclusive
Enter today's sales for store 5: 1900 
Sales Bar Chart 
Store 1: ********** 
Store 2: ************ 
Store 3: ****************** 
Store 4: ******** 
Store 5: *******************  

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Asks the user to enter today''s sales for five stores
Reference No:- TGS087804

Expected delivery within 24 Hours