Johnatron5464 Johnatron5464
  • 13-01-2021
  • Computers and Technology
contestada

Write a procedure ConvertToBinary that takes an input as a number from 0 to 16 (including 0 but not 16) and converts it to a binary number. The binary number should be returned as a list.

Respuesta :

tonb
tonb tonb
  • 13-01-2021

Answer:

function ConvertToBinary(n) {

 console.log(n.toString(2).split(''));

}

ConvertToBinary(13);

Answer Link

Otras preguntas

How can doing research benefit a collaborative discussion
The width of a rectangular is 7 meters greater than its length. If the area of the rectangle is 170 square meters, write the quadratic equation in standard form
Ene's husband passed away this year. after his death, irene received $250,000 of proceeds from life insurance on her husband, and she inherited her husband's st
Mr. Jameson is walking toward his nine-story hotel and stops to look up to the top of the building. The angle of elevation to the top of the hotel is 40°. If th
What do I have to do to pass AP American government and politics?
Is this formula explicit or recursive? And find the first five terms of the sequence. Ax=-4n(n-1)
Then for testing h0 : d = 0 against ha : d > 0 , the proper test statistic and the critical value of significance level 0.05 are __________. a.5.66 and 1.684
Traditionally, trial lawyers contribute money to judicial candidates who are sympathetic to plaintiffs.
i need to find the area plz explain your answer
What is x? What is y? Show full work and I’ll give you a lot of points!!