Write a program that asks the user to enter todays sales for five stores. The program should
Question:
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:
Transcribed Image Text:
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: *** *** * *
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (8 reviews)
import javautilScanner public class SalesGraph public static void mainString ar...View the full answer
Answered By
Marvine Ekina
Marvine Ekina
Dedicated and experienced Academic Tutor with a proven track record for helping students to improve their academic performance. Adept at evaluating students and creating learning plans based on their strengths and weaknesses. Bringing forth a devotion to education and helping others to achieve their academic and life goals.
PERSONAL INFORMATION
Address: , ,
Nationality:
Driving License:
Hobbies: reading
SKILLS
????? Problem Solving Skills
????? Predictive Modeling
????? Customer Service Skills
????? Creative Problem Solving Skills
????? Strong Analytical Skills
????? Project Management Skills
????? Multitasking Skills
????? Leadership Skills
????? Curriculum Development
????? Excellent Communication Skills
????? SAT Prep
????? Knowledge of Educational Philosophies
????? Informal and Formal Assessments
0.00
0 Reviews
10+ Question Solved
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted:
Students also viewed these Computer science questions
-
Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Write the following methods in the program: ...
-
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two,...
-
Write a program that asks the user to enter a month (1 for January, 2 for February, and so on) and then prints the number of days in the month. For February, print 28 or 29 days. Enter a month: 5 30...
-
A city levies property taxes of $2 billion in June 2015for its Fiscal year beginning July 1, 2015. The taxes are due by January 31, 2016. The following (in millions) indicates actual and anticipated...
-
The report Mobile Youth Around the World (The Nielsen Company, December 2010) provided the following information on gender of smart phone users for representative samples of young people ages 15 to...
-
Two loads are suspended as shown from the cable ABCD. Knowing that hB = 1.8 m, determine (a) The distance hC, (b) The components of the reaction at D, (c) The maximum tension in the cable. -3 u- D....
-
The account balances for Atlantis Aquatics, Inc., for the year ended December 31, 2010, are presented next in random order: Requirements 1. Prepare Atlantis Aquatics single-step income statement. 2....
-
Primo Paper, Inc., has three paper mills, one of which is located in Seattle, Washington. The Seattle mill produces 200 different types of coated and uncoated specialty printing papers. This large...
-
d. Answer these questions one at a time to see the effect of the change on NAL. That is, starting with the original numbers you used for questions a. and b., what is the NAL if: - interest rate...
-
Ryan Ross (111-11-1112), Oscar Omega (222-22-2222), Clark Carey (333-33-3333), and Kim Kardigan (444-44-4444) are equal active members in ROCK the Ages LLC. ROCK serves as agents and managers for...
-
What is the advantage of using a sentinel?
-
Write a for loop that repeats seven times, asking the user to enter a number. The loop should also calculate the sum of the numbers entered.
-
The following are selected transactions that may affect shareholders' equity. 1. Converted bonds to common shares. 2. Declared a cash dividend. 3. Effected a stock split. 4. Recorded the expiration...
-
assume that the one - year interest rate is 4 . 0 percent in the united states; the spot exchange rate is $ 1 . 2 5 / euro , and the one - year forward exchange rate is $ 1 . 1 6 / euro . what must...
-
Calculate the mass flow rate (in grams per second) of blood ( = 1.0 g/cm3 ) in an aorta with a cross-sectional area of 2.0 cm2 if the flow speed is 40 cm/s.
-
Each row shows the tax rate on a specific portion of the taxpayer's taxable income given their filing status. For example suppose a taxpayer has a filing status of single and taxable income $ 4 0 0 0...
-
What is the Ending inventory using the average cost method? Fulbright Corporation uses the periodic inventory system. During its first year of operations, Fulbright made the following purchases...
-
Guru Corp. will pay the following dividends over the next 4 years: $ 1 2 , $ 8 , $ 7 , and $ 2 . 5 0 . After this time, the company will maintain a 5 % growth rate in dividends. What is the current...
-
Consider Example 70 and the data set in figure 13.7. (a) Make a plot of the residuals c, against the lilted values y,. Make a plot of the residuals c, against the temperature values v,. Do either of...
-
The following items were displayed in the statement of affairs for Lubbock Company: Fully secured liabilities ......... $90,000 Partially secured liabilities ....... 12,000 Unsecured liabilities...
-
Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the users guess is higher than the random number, the program should...
-
This is a math module function. a. Derivative b. Factor c. Sqrt d. Differentiate
-
What is a global constant? Is it permissible to use global constants in a program?
-
Balance, September 1 Checks BANK STATEMENT Deposits Other Balance $ 1,940 September 7 NSF check $ 90 1,850 September 11 $ 2,910 4,760 September 12 #101 $ 770 3,990 September 17 #102 1,640 2,350...
-
A large hospital required nurses to work 80 hours over two-week (14 day) pay periods. In addition, nurses were also considered to be "on-call" for an additional 20 hours during the pay period. While...
-
Describe the history of the HIPAA, explaining why it is essential. Consider the following questions in your response: Why is understanding the history of the HIPAA law essential in decision making...
Study smarter with the SolutionInn App