I am trying to convert the following "XXXnnnnn" into a barcode and therefore binary. X= alphabet and n= number.

Please help.