Write a program that reads a sequence of input values and


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 **************************

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that reads a sequence of input values and
Reference No:- TGS0662064

Expected delivery within 24 Hours