Three voltage measurements + output to a LCD screen

I need to use a voltage divider I think, and if I used two 10ohm resistors I should get 2.5v from 5v according to my calculations?

The thing I'm confused about is how would I adapt the coding?