(HELP)Creating a light intensity indicator using a 2 digit seven segment display

You should find plenty of examples of outputting a digit to a 7 seg display.

One way of doing it is to use switch/case (10 cases) and turn on the required segments based on the value of the case. An alternative is to use a 2 dimensional array with 10 levels and 7 columns. One level for each digit and 1 column for segment to be turned on.