Question: ( Please answer Question # 3 ) 1 . ) Convert the following numbers from decimal to binary: 1 , 2 , 4 , 8
Please answer Question # Convert the following numbers from decimal to binary:
a Use the following code to output all of the answers at once: printbinbinbinbinbinbinbinbin
b When you see the output note that b is in front of each number. That serves to indicate that the output number is in binary.
Convert the following numbers from decimal to octal:
a hint: use the oct function
b note that each octal output has o in front of it
Based on the pattern in Questions and do a third set of conversion for hexadecimal. What will those conversions be Write the code and convert them.
a use the hex function
bnote that hexadecimal outputs have x in front of them
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
