I am making a program in C++11 that represents a yearly rainfall statistics. I have almost completed the program but I am stuck in the last stage. I need to design/display a bar chart using *, that display data from an array. For example: the UK monthly rainfall amount (mm) in 2015 are: 154.3, 79.2, 95.6, 46.3, 109.6, 55.1, 109.5, 107.4, 54.0, 72.2, 176.0, 230.0 for each month consecutively.
I want the bar chart to look something like this:
0 - 50 : *
50 - 80 : ****
80 - 110 : ****
110 - 140 :
140 - more : ***
I badly need some help..!
Aucun commentaire:
Enregistrer un commentaire