1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Law Incorporation [45]
3 years ago
11

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 bin

ary number. The binary number should be returned as a list.
Computers and Technology
1 answer:
monitta3 years ago
6 0

Answer:

function ConvertToBinary(n) {

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

}

ConvertToBinary(13);

You might be interested in
A for loop is most useful for: A. executing some statements for a specific number of iterations B. executing some statements for
dsp73

Answer:

Option A and C

Explanation:

  • Loops are control structures used to rehash a given area of code a specific number of times or until a specific condition is met. Visual Basic has three principle sorts of circles: for..next circles, do circles and keeping in mind that circles.  
  • For loop is a programming language contingent iterative proclamation which is utilized to check for specific conditions and afterward over and over execute a square of code as long as those conditions are met.
4 0
3 years ago
If you don’t have a paper copy of the FAFSA form, how else can you fill it out?
Ronch [10]
Go on your school computer, and find a copy of the form. Then print it from the school printer.
3 0
3 years ago
Read 2 more answers
How fast can the winds blow in a tornado?
sp2606 [1]
Over 200 mph generally now I says 300 mph
6 0
4 years ago
Read 2 more answers
Plugging in a cable is a good troubleshooting technique. <br> True or false
natali 33 [55]

Answer:

false

Explanation:

that does nothing

6 0
3 years ago
Given 3 floating-point numbers. Use a string formatting expression with conversion specifiers to output their average and their
kodGreya [7K]

Answer:

number1 = float(input("Enter the first number: "))

number2 = float(input("Enter the second number: "))

number3 = float(input("Enter the third number: "))

avg = (number1 + number2 + number3) / 3

product = number1 * number2 * number3

print("Average - Product with integer numbers: " + str(int(avg)) + " " + str(int(product)))

print("Average - Product with float numbers: %.6f %0.6f" % (avg, product))

Explanation:

- Get three numbers from the user

- Calculate the average of the numbers

- Calculate the product of the numbers

- Print average and product of the numbers in required format

6 0
3 years ago
Other questions:
  • Who invented autonomous cars? When I look it up it comes up as William Bertelsen but he invented the idea of hovering cars. Help
    8·1 answer
  • A malicious program that can replicate and spread from computer to computer?
    10·2 answers
  • Which of the following information should be included in audit documentation? a. Procedures performed. b. Audit evidence examine
    13·1 answer
  • Consider the following code segment. The code is intended to read nonnegative numbers and compute their product until a negative
    11·1 answer
  • Discuss the challenges of not using the five elements of multimedia in a positive manner<br>​
    7·1 answer
  • A(n) _____ is a network connection device that can build tables that identify addresses on each network.
    10·1 answer
  • Diacuss three examples of divide and conquor approach​
    9·1 answer
  • It is important to understand the different types of DoS attacks and the symptoms of those attacks. Leaving a connection half op
    15·1 answer
  • Develop a program working as a soda vending machine. The program should show the product menu with price and take user input for
    11·1 answer
  • What open source format has multiple versions for storing audio and video content?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!