To construct a histogram, we need to place the classes (the ratings from 0 to 10 in this case) on the horizontal axis, and the counts of each class on the vertical axis.
(a)
The histogram of the data is:
(b)
For the frequency polygon, we use the histogram as the body of the graph, joining the points of the graph with segments: