Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hey guys, I have a question, I am asking because I am not understandingthe formu

ID: 3611722 • Letter: H

Question

Hey guys, I have a question, I am asking because I am not understandingthe formula on how to convert numbers. The question is below
 ) Write a program that prints a table of binary, octal and hexadecimal equivalents of thedecimal numbers in the range 1 through 256.Expected Output:Decimal   Binary      Octal       Hex========  ========    ======      =====0     00000000         0         01     00000001         1         12     00000010         2         23     00000011         3         34     00000100         4         45     00000101         5         56     00000110         6         67     00000111         7         78     00001000        10         89     00001001        11         910     00001010        12         a11     00001011        13         b12     00001100        14         c13     00001101        15         d14     00001110        16         e15     00001111        17         f16     00010000        20        1017     00010001        21        1118     00010010        22        1219     00010011        23        1320     00010100        24        1421     00010101        25        1522     00010110        26        1623     00010111        27        17..     ........        ..        ....     ........        ..        ....     ........        ..        ..248     11111000       370        f8249     11111001       371        f9250     11111010       372        fa251     11111011       373        fb252     11111100       374        fc253     11111101       375        fd254     11111110       376        fe255     11111111       377        ff
I am assuming that youhave to loop numbers. But if anyone can really help me out withthis it would be appreciable! I have always rate and will be ratingas a lifesaver. Thanks I have a question, I am asking because I am not understandingthe formula on how to convert numbers. The question is below
 ) Write a program that prints a table of binary, octal and hexadecimal equivalents of thedecimal numbers in the range 1 through 256.Expected Output:Decimal   Binary      Octal       Hex========  ========    ======      =====0     00000000         0         01     00000001         1         12     00000010         2         23     00000011         3         34     00000100         4         45     00000101         5         56     00000110         6         67     00000111         7         78     00001000        10         89     00001001        11         910     00001010        12         a11     00001011        13         b12     00001100        14         c13     00001101        15         d14     00001110        16         e15     00001111        17         f16     00010000        20        1017     00010001        21        1118     00010010        22        1219     00010011        23        1320     00010100        24        1421     00010101        25        1522     00010110        26        1623     00010111        27        17..     ........        ..        ....     ........        ..        ....     ........        ..        ..248     11111000       370        f8249     11111001       371        f9250     11111010       372        fa251     11111011       373        fb252     11111100       374        fc253     11111101       375        fd254     11111110       376        fe255     11111111       377        ff
I am assuming that youhave to loop numbers. But if anyone can really help me out withthis it would be appreciable! I have always rate and will be ratingas a lifesaver. Thanks I am assuming that youhave to loop numbers. But if anyone can really help me out withthis it would be appreciable! I have always rate and will be ratingas a lifesaver. Thanks

Explanation / Answer

can you give me the formulae for the conversions