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

  What is the role of statistical analysis in simulation

How do pseudo-random numbers affect an accuracy of a simulation.

  Entity-relationship diagrams

The process of starting with the world objects and modelling utilizing the entity-relationship diagrams is known to as a top-down process.

  Find the speed of a personal computer

Treat each of the questions individually and in the order given below. The focus of your answers should be on answering the 'why' questions posed below and your explanations for your recommendations. This is not a formal paper and APA guidelines d..

  Advantages of technologies

List some of the advantages of some of current technologies explained in our reading this week involving VoIP, Virtual Private Networks, Unified Communications, Wi-Fi and wireless technologies such as RFID.

  What are the required devices to establish network

What kind of problems may we encounter while establishing this network. What are the required devices to establish network? Provide brief explanation with data flow diagrams.

  What kind of algorithm is required

figuring out how to find the last element of the print statement. For array A(N) and input element ARG, what kind of algorithm is needed to determine which element of A(N) is closest to but not greater than ARG? I've gotten this far but can't find..

  How to create a html website

Create a HTML website using the following guidance.

  Suppose that a dvd could potentially be rented

Ray wants to start a DVD rental program at his stores that he plans to call Henry's DVD Club. He refers to each of his customers as "members."

  What fields you believe would be primary keys

Be sure to include the field type and size. Please do not jump ahead and try to create tables. now I'm just looking for a list of fields. This is somewhat vague on purpose. I want you to decide what is required in the database.

  Wireless networking

Explain the origins/genesis of the wireless networking. Explain the devices included used and how they operate.

  Context free language

Let L1 be the regular language and L2 be the context-free language, both described over the same alphabet Σ. a) Is L1∩L2 always regular? Explain your claim.

  Explaining the binary tree

The left spine of the binary tree is a path starting at root and following only left-child pointers down to a leaf. State the expected number of nodes in left spine of an n-node treap. What is the expected number of leaves in an n-node treap?

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