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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started