A program is a series of instructions or commands that a computer follows; used to create software.It includes all the routines and procedures the computer must follow to get the job done. Programs are written with computer programming languages , which give instructions to a computer in a language the computer understands. Examples are: Java, C++, HTML, JavaScript,...
The gear ratios would look like A:B=1:9 and C:D=1:32 if you are just needing the gear teeth ratio. Not a lot of information to go off of from the question though