Hi I need to figure out how to make a histogram for a set of data (scores).

I need it to display something like

A: ***

B: **

C: ******

D: *

F: ****

Here is my function for adding in the scores

```
int addGrades(int grades[], int num_grades)
{
int i = 0;
int count;
printf("\nEnter grades, with 10 being the maximum number of grades:\n");
for(i = 0; i < num_grades; i++)
{ /* start of for loop */
printf("%2d> ", i+1);
scanf("%d", &grades[i]);
} /* end of for loop */
return num_grades;
} /* end of addGrades */
```

and here is my function to view the array

```
void displayGrades(int grades[], int num_grades)
{
int i = 0;
printf("Here are the grades collected: \n");
for(i = 0; i < num_grades; i++)
{ /* start of for loop */
printf("%4d", grades[i]);
} /* end of for loop */
printf("\n"); /* prints a blank line */
} /* end of displayGrades */
```