while and base conversion
Examine
this code
Develop a method to reverse this process
Here
is some help
Here
is some more help