For this project I basically allowed the user to input how many times they wanted to roll two dice, put the dice rolls into an array, and displayed how many times they rolled a certain value. The code works, but I currently have it showing numerically how many times they rolled a value when instead it is supposed to look something like this:
So if the dice rolls were 7, 4, 9, 3, 5, 6, 4, 7, 10, 11, 2
the histogram would look like
2:X
3:X
4:XX
5:X
6:X
7:XX
8:
9:X
10:X
11:X
12:
I've already looked around quite a bit on different forums but everything I have tried doesn't work quite right. Here's what I have so far: