how to I program an lcd please give me a tutorial.
Did you look in the examples on this actual site?
There's a menu on the left, and they're cunningly arranged in alphabetical order.
It links to the LCD reference page too.
Maybe if you tell us what you mean by an "LCD", we can advise.
lcd liquid crystal display
There are many different types of liquid crystal displays. There are character and graphic. Color and monochrome. Many different resolutions. Many different display controllers. We need to know exactly what you are talking about. Post a data sheet of the display or show a photo of your display.
There are two popular kinds of LCD 16x2: with and without I2C
For a decent description.
OK, we presume you mean a common "1602" display, but is it? With a "backpack" or not?
Play fair!