SimpleDis
SimpleDis SimpleDis
  • 12-03-2016
  • Computers and Technology
contestada

Algorithm for converting decimal into binary.

Respuesta :

Аноним Аноним
  • 12-03-2016
The simplest way is to make for loop first you need to generate 1,2,4,8,16,32,64,128,256....and others number in Array. Then you will check every number. Like this.
Decimal Input 84;
64 is closest to 84.
84-64=20
Write: 1
20-32=-12(Because It's negative you will write 0)
Write:10
20-16=4
Write: 101
4-8=-4 (Negative)
Write:1010
4-4=0
Write: 10101
0-2=-2
0-1=-1
Write: 1010100 = 84
Answer Link

Otras preguntas

Why would this action confirm Gorbachev’s commitment to reform?
see images for the following problem
which one of the following can be the best classified as fundamental quantity A.forceb.time c.velocity D.acceleration
HEEEEELPPPPP MEEE!!! DETAILED ANSWER = BRAINIEST ANSWER The length of a rectangle is shown below: On a coordinate grid from negative 6 to positive 6 on the x-ax
An incomplete life insurance application submitted to an insurer will result in which of these actions
A researcher wants to invite therapists to participate in small focus groups to discuss their perceptions regarding "troubled" adolescent girls and the relation
185g shared to the ratio of 2:3
Jerome is walking through a park when he sees the spider shown at left. how could jerome find out what type of spider it is
Help please with algebra problem
What are some characteristics of 18th Century art in Europe?