Write a function void bar_chart(double values[], int size) that displays a bar c
ID: 3637029 • Letter: W
Question
Write a function
void bar_chart(double values[], int size)
that displays a bar chart of the values in values, using asterisks, like this:
**********************
****************************************
****************************
**************************
**************
You may assume that values in values are positive or negative. First figure out the maximum
value in values. That value’s bar should be drawn with 40 asterisks. Shorter bars
should use proportionally fewer asterisks.And then write the source code that includes this function and calls it,to work properly.