Write a program that reads a sequence of input values

Assignment Help Computer Engineering
Reference no: EM13323394

Write a program that reads a sequence of input values and displays a bar chart of the values in data, using asterisks, like this:

*********************
*************************
*********
**************************

You may assume that all values are positive. First figure out the maximum value in data. That value's bar should be drawn with 40 asterisks. Shorter bars should use proportionally fewer asterisks. Improve your program by adding caption to your bar. Prompt the user for the captions and data values. The output should look like this:

Egypt *********************
France *************************
Norway *********
Germany **************************

 

Reference no: EM13323394

Questions Cloud

Write a program that prompts the users to pick : A theater seating chart is implemented as a two-dimensional array of ticket prices like presented below. Write a program that prompts the users to pick either a seat or a price.
Having more customers is better than having fewer customers : To be successful, you have to be cheaper.  Take an SBA (Small Business Administration) course, and thy will tell you that if your only competitive point is to be cheaper, don’t bother starting your business.
Develop performance plans : What does this quote mean to you in the context of team disagreement and conflict resolution? Explain in detail and prepare 2000 word report by critically addressing the following issues.
Calculate the maximum height that the ball bounces : suppose after the ball reaches the ground ,it bounces back straight upwards at the speed of half of the speed that it hits the ground, calculate the maximum height that the ball bounces
Write a program that reads a sequence of input values : Write a program that reads a sequence of input values and displays a bar chart of the values in data.
Explain how many gaseous molecules does the flask contain : An open flask sitting in a lab fridge looks empty, but we know that actually it is filled with a mixture of gases called air. If the flask volume is 1.50 L, and the air is at standard temperature and pressure, how many gaseous molecules does the f..
Determine the maximum design compression strength of column : If a 24' tall W 14 x 120 column has simple end connections, determine the maximum design compression strength of the column.
Create an interface source file for the temperature class : Create an interface source file for the Temperature class. this is the Temperature class code in java: public class Temperature { public double c2F(double c) { return (9 * (c/5) + 32); } public double f2C(double f) { return (5 * (f-32) / 9); } }
Evaluate the potential of a hydrogen electrode : Calculate the potential of a hydrogen ( p= 1.02 atm) electrode in an aqueous solution of HBr (0.05 m ) at 298 K A) assuming ideal solute behavior. B) using the Deby- Huckel equation.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a class grade with a method getnumericgrade

note down  a Java program that translates a letter grade into a number grade. Letter grades are A B C D F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F-. A + increases the numeric value by 0.3, a - d..

  How to calculate the area of a circle

Your employer has requested the development of a software application to compute the area of a circle. The application must accept only one value (i.e., the radius), and it must display the result in decimal value.

  Which process is the best choice

In SQL Server, multiple WHERE statements can accomplish almost everything that a UNION can. TRUE OR FALSE. Justify your reply . This question is not asking that method is the best choice or the more efficient. It is simply asking is it possible.

  Select one physical tamper-resistant device application

Choose one physical tamper-resistant device application and describe its security-related protocol in full. Are there any potential practical attacks on the protocol? would the power analysis attack be feasible in your protocol.

  Recognize the the base case

What valid values could be passed as parameters to the function mystery.

  Recognizing the error in code

Suppose that the variable A is an arrays of ints. Take the following code segment:Boolean flag = false;

  Scripts_new directory and dir.txt file

Write down the following folder structure on C: drive of your computer: Scripts_New, Networking, User.

  What mips instruction will be executed

In a von Neumann architecture, groups of bits have no intrinsic meanings by themselves. What a bit pattern represents depends entirely on how it is used. Consider the following bit patterns expressed in hexadecimal notation.

  Modify compound interest program

Modify compound interest program

  Generate the tables attach the primary key and foreign key

Generate the tables attach the primary key and foreign key

  Describe component method to draw the current value

Write down a program that uses the paint component method to draw the current value of a JSlider on a subclass of JPanel.

  Get the cylinder class from the base circle class

Get the cylinder class from the base circle class

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd