Sajin
User title under construction.
- Reaction score
- 56
So for my final project in my college principles of programming class, we were given an assignment where we are to take a hypothetical situation where we are to calculate the 'haul potential' of planets, if we were to mine them, by using (potential value)/(distance from headquarters) as our determining factor, the planet with the highest value is to be mined.
This stuff I'm perfectly content with. The problem arises when the coordinates of the planets can be entered in any number system between binary and hex, and thats where I get lost. I was hoping someone could shove me in the right direction.
I was thinking somewhere along the lines of making a loop that would find the (coordinate number) % (the base) then square that by a counter, then keep going like that, the problem comes with base 11 - 16.
This stuff I'm perfectly content with. The problem arises when the coordinates of the planets can be entered in any number system between binary and hex, and thats where I get lost. I was hoping someone could shove me in the right direction.
I was thinking somewhere along the lines of making a loop that would find the (coordinate number) % (the base) then square that by a counter, then keep going like that, the problem comes with base 11 - 16.