Question: (in Java Please) Write a program that asks the user to enter today's sales for five stores. The program should display a bar chart showing
(in Java Please) Write a program that asks the user to enter today's sales for five stores. The program should display a "bar chart" showing each store's sales. Create each bar chart by displaying a row of dashes. Each dash Should represent $100 of sales. Round this down - e.g. if a store has 90 sales, no dash. If a store has 180 sales, 1 dash, etc. Instead of repeating the code to show the bar chart for sales for each of the five stores, write a method that takes a number of sales as an input, and prints the appropriate bar chart and call that method five times instead.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
