You need to post code that is causing problems. I/ we are not doing your work for you, so posting an example of what you want goes to your research not mine.
You need to think how you are storing the information about the programs in order to search for and then display them.