
13th November 2007, 04:05 AM
|
|
Junior Member
|
|
Join Date: Nov 2007
Posts: 1
Credits: 0
|
|
Write a C program to generate a bar chart for a list of numbers.?
Write a program to generate a bar chart for a list of numbers, where each number is between -10 and 10. Given a list of numbers, your program needs to first sort the numbers. Your program should then generate the bar chart where the left hand side represents the negative values and the right hand side represents the positive values (see example output below). Your bar chart should only use the *, | and space characters.Example:Input: 10 –5 5 –10 0Sorted list: -10 -5 0 5 10 Output:Bar Chart|**********| || *****| || | || |***** || |********** |1 hour ago - 3 days left to answer.
|