bar_chart.c code complete and tested.