No, you're not understanding...

1. You can't display characters like Q on 7-segment displays. If you can figure how to do it, let me know, and we'll make a great deal of money together...

2. This isn't a request forum where you ask for people to provide you with free code. This is where you program YOURSELF (and if you don't know how, then you learn). When you get stuck or make mistakes along the way, you can ask the good people here to help you where you have gone wrong - but not do it for you!