0

I have been assigned this project to create a dynamic key code and I don't have a clue about how I can get it done.

The problem:

I am given a 10 digit number like a phone number 5627775698 and I need to parse through the number and set every other digit to zero starting with the the first digit. Then I need to convert that number to Binary and apply a mask like 1111111111 then add the two numbers together.

I already know how to apply the mask and adding the two numbers together but I need a system or technique to solve the first part of the problem.

Any suggestion?