Question: Please use c+ to write the code and don't worry about the names thank you Converting Decimal Integer to Binary To convert integer to binary,

 Please use c+ to write the code and don't worry aboutthe names thank you Converting Decimal Integer to Binary To convert integer

Please use c+ to write the code and don't worry about the names thank you Converting Decimal Integer to Binary To convert integer to binary, start with the integer in question and divide it by 2 keeping notice of the quotient and the remainder. Continue dividing the quotient by 2 until you get a quotient of zero. Then just write out the remainders in the reverse order. Here is an example of such conversion using the integer 12. First, let's divide the number by two specifying quotient and remainder: 12: 2-6+0 6:2-3 0 3:2 11 1:2-01 Now, we simply need to write out the remainder in the reverse order-1100. So, 12 in decimal system is represented as 1100 in binary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!