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.

Answers

Answer 1

Answer:

function ConvertToBinary(n) {

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

}

ConvertToBinary(13);


Related Questions

Match the type of secondary storage devices to their examples.
CD
hard disk
flash memory
magnetic storage devices
arrowRight
optical storage devices
arrowRight
solid-state storage devices
arrowRight

Answers

Answer:

1. CD: optical storage devices.

2. HDD: magnetic storage devices.

3. flash memory: solid-state storage devices.

Explanation:

A storage device can be defined as a computer hardware that is typically used for the storage of data or any computer related information such as images, videos, texts, music, codes and folders.

Some examples of storage devices used in the field of computer science are;

1. Optical storage devices: it is circular in shape and includes compact disk (CD), DVD, Blu-ray disk etc. A compact disc (CD) is a small digital-optical disc that is used to store computer data using a laser beam. It is able to store digital data because it is made up of a polycarbonate (a tough-brittle plastic) with one (1) or more metal layers.

2. Magnetic storage devices: this is one of the most widely used storage devices and it comprises of hard disk drive (HDD), floppy diskette, magnetic strip etc.  

3. Solid-state storage devices: it is typically made up of integrated circuits and uses flash memory to store data.

refers to guidelines for online behavior. a. Internet Rules b. Netiquette c. Net rules d. Web etiquette

Answers

Answer:

Option b (Netiquette) is the appropriate alternative.

Explanation:

Netiquette would be concerned about internet classrooms although it makes communication extra knowledgeable, straightforward as well as considerate, students are allowed to openly share experiences as well as provide feedback on assessments as well as internet communities as well as through e-mail. It's indeed exactly equivalent in quite a professional field environment to the responsible ways.

Those certain possibilities are not connected to something like the present case. So above, there's the correct solution.

Uses of browser extensions include: Select all that apply. A. blocking ads B. reformatting a hard drive C. translating web pages D. tracking online orders

Answers

Answer:

B. reformatting a hard drive

Explanation:

Browser extension is defined by its characteristics or ability to modify a web browser to users' taste. It is often considered as a software module which is a source code. It serves a lot of purposes some of which includes:

1. It serves as a keylogger to save users sensitive information like passwords on a website.

2. It can be used for ad inclusion and ad blocking on website pages. average.

3. It can assist in redirecting online search traffic elsewhere.

4. It can also track online activities such as transactions.

Hence, in this case, the correct answer is "option B. reformatting a hard drive."

A Browser Extension is known to be a little software module. It is used for blocking ads.

What are the uses of browser extensions?

A browser extension is known as a software that allow different kinds of extensions. It helps in;

The user interface modifications.Cookie management, ad blocking.The custom scripting and styling of web pages. etc.

They are known to be designed to boast user experience in a web browser when using web apps.

Learn more about browser extensions from

https://brainly.com/question/4116298

Electronic Equipment Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc.). Include data values that describe various attributes of the electronics, such as the weight, cost, power usage, and the names of the manufacturers. Include methods that are named appropriately for each class and that print an appropriate message. Create a main driver class to instantiate and exercise several of the classes.

Answers

Answer:

Answered below

Explanation:

//This design is implemented with Kotlin.

class Equipment (val name: String,

var weight: Double,

var cost: Double,

val powerUsage: Double,

val manufacturers: String) {

fun equipmentSpecs( ){

print("Equipment is $name. It is

manufactured by

$manufacturers and costs

$cost. It weighs $weight and

usess $powerUsage amount of power")

}

}

//Driver class

class Driver{

fun main( ){

val cellPhone: Equipment = Equipment ("Samsung", 5.3, 20, 2.5, "Samsung labs")

println( cellPhone.name)

println(cellPhone.weight)

cellPhone.equipmentSpecs( )

}

}

7. Which cipher is based on the clues of the physical factors, rather than the hardware or a software cryptosystem

Answers

Answer:

The concealment cipher.

Explanation:

A concealment cipher also known as null cipher can be defined as an obsolete encryption format that typically involves the mixture of plaintext with non-cipher elements. This ultimately implies that, the plaintext is hidden in another message through encryption.

The concealment cipher is based on the clues of the physical factors, rather than the hardware or a software cryptosystem.

Basically, the concealment cipher is solely dependent on the clues of the physical factors that mainly affects the sender and receiver in a communication system.

Full virtualization is ideal for ___________. Migration capacity Computer system sharing,isolate users Disaster recovery Data replication

Answers

Answer:

Computer system sharing, isolate users

Explanation:

Full virtualization is ideal for "Computer system sharing, isolate users." This is evident in the fact that Full virtualization is a technique in which data are shared between operating systems and their hosted software. This strategy is then carried out from the top of the virtual hardware.

Also, the full virtualization strategy in computer service requests is distinguished from the physical hardware that enables them.

Hence, in this case, the correct answer is "Computer system sharing, isolate users."

le
What are the six different categories used in assessing technology impacts' X
All
E News
Images
D Videos
More
Settings
Tools

Answers

The law companies that value excessive

Which of the following is NOT a category on a shot list

Answers

Answer:

What’s the following I will edit this and answer it if I can know

Explanation:

Define the summary function, which takes as arguments a database (dict) and a dict of current stock prices. It returns a dictionary (dict or defaultdict) whose keys are client names (str) whose associated values are 2-tuples: the first index is a dictionary (dict or defaultdict) whose keys are stock names (str) and values are the number of shares (int) the client owns. The second index is the amount of money (int) the portfolio is worth (the sum of the number of shares of each stock multiplied by its current price). Assume each client starts with no shares of any stocks, and if a client owns 0 shares of a stock, the stock should not appear in the client’s dictionary. Recall positive numbers are a purchase of the stock and negative numbers a sale of the stock. E.g., if db is the database above, calling summary(db, {'IBM':65, 'Intel':60, 'Dell':55, 'Apple':70}) would return

Answers

Hi :). (_define Your question to answer) ,

True or false: pinhole cameras can be outfitted with very accurate viewfinders

Answers

Answer:

true

Explanation:

Answer:

True

Explanation:

What is one reason why a business may want to move entirely online?
O
A. To double the number of employees
B. To focus on a global market
C. To avoid paying state and local taxes
D. To limit the number of items in their inventory

Answers

Answer:

To focus on global market

Explanation:

Hope this helps! :)

Which threat hunting technique is best suitable when handling datasets that creates limited number of results

Answers

Answer:

Stacking

Explanation:

Threat hunting is searching through networks and datasets to see if their are suspicious or activities that are risky.

Stacking has to do with counting the frequency the frequency of occurrences for those values that are of o particular type. And then making an analysis) examination of the outliers of these results.

When the dataset is large or diverse, the effectiveness of the stacking technique reduces. It is best used with datasets that would give a finite number of results.

Write a function called nacho_reaction that returns a string based on the type of nacho passed in as an argument. From top to bottom, the conditions should correspond to: 'cheese', 'salsa', 'both', 'neither'.

Answers

Answer:

Following are the code to this question:

def nacho_reaction(nacho):#defining a method nacho_reaction that accepts a string variable

   return nacho#return parameter value

nacho=['cheese', 'salsa', 'both', 'neither']#defining list of string values

r = str(nacho)[1:-1]#use r variable that removes brace from string value

print(nacho_reaction(r))#calling nacho_reaction method that prints string value

Output:

'cheese', 'salsa', 'both', 'neither'

Explanation:

In this code, a method "nacho_reaction" is declared that accepts a list of a string variable in its parameter, and use a return variable, that prints its value.

In the next step, a "nacho" a list of an integer is declared, that holds a string value and uses the "r" variable, that removes the brace, and uses a print method that calls the "nacho_reaction" method to print string value.


Jim wants to enlarge a black-and-white photograph with a warm-black tone. What type of black-and-white paper emulsion should Jim use for this
process?
A chlorobromide
B. bromide
C. chloride
D platinum

Answers

Answer:

A. Chlorobromide

Explanation:

I took the test and got it right. (Plato)

The type of black-and-white paper emulsion should be used by Jim is chlorobromide. Thus, option (A) is correct.

What is emulsion?

A sort of colloid called an emulsion is created by mixing two liquids that wouldn't typically mix. A dispersion of the other liquid is present in one liquid in an emulsion.

Emulsions frequently occur in foods like egg yolk, butter, and mayonnaise. Emulsification is the process of combining liquids to create an emulsion.

According to the above scenario, Jim wishes to expand a warm-toned black-and-white photograph. For this purpose, he should use chlorobromide for black-and-white paper emulsion.

Paper covered with a chemical compound that is light-sensitive, which is inferred as photographic paper. When exposed to light, it captures the latent image.

Therefore, it can be concluded that option (A) is correct.

Learn more about emulsion here:

https://brainly.com/question/6677364

#SPJ2

Identify the name given to the original information or intelligence signals that are transmitted directly via a communication medium.

Answers

Answer:

Baseband signals

Explanation:

A baseband signal is one that sends information signal without changing anything. That is without shifting frequency or modulation.

When voice signals, videos or audios are sent directly over a communication medium, we call it baseband transmission. The frequency range is near zero.

When digital signals are sent from computer to printer, this 8s an example of baseband signal.

Write a procedure that takes a positive integer as a parameter. If the number given to the procedure is no more than 30, the procedure should return the absolute difference between that number and 30

Answers

Question (continuation):

If the number is greater than 30, the procedure should return the number doubled.

Answer:

The procedure written in C++ is as follows:

void absdiff(int num){

   if(num<=30){

       num = abs(num - 30);

   }

   else{

       num*=2;

   }

   cout<<num;

}

Explanation:

This defines the procedure

void absdiff(int num){

This checks if the integer parameter is not more than 30.

   if(num<=30){

If yes, the absolute difference between 30 and the number is calculated

       num = abs(num - 30);

   }

If otherwise

   else{

The number is doubled

       num*=2;

   }

This prints the processed result

   cout<<num;

}

See attachment for complete program that includes the main

Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the character appears in the phrase.

Answers

Answer:

The program in Python is as follows:

print("Enter a character followed by a phrase",end='')

word = input(": ")

char = word[0]

print("Occurrence: "+str((word.count(char))-1))

Explanation:

The prints an instruction to the user on how to input to the system

print("Enter a character followed by a phrase",end='')

This prompts and gets the user for input

word = input(": ")

This extracts the character from the input string

char = word[0]

This counts and prints the number of occurrence of the extracted character

print("Occurrence: "+str((word.count(char))-1))

Write a loop to populate the list user_guesses with a number of guesses. Each guess is an integer. Read integers using int(input()).

Answers

Answer:

num_of_guesses = int(input())

user_guesses = []

for n in range(num_of_guesses) :

guess_value = int(input())

user_guesses.append(guess_value)

print("User guesses :", user_guesses)

Explanation:

Using python

Line 1 prompts the user to input the number of guesses he / she will like to make.

Line 2, initiates an empty list which will be used to store the numbers which will be guessed.

The for loop which uses the condition stated in line 1, that is, the user will only be able to make guesses based on the value enters into num_of_guesses

guess_value prompts user to enter a value which is added to the user_guesses list

The print statement, lists the numbers guessed by the user.

What is the first thing that the criminalist must do after visualizing a print but before making any further attempts at preserving it

Answers

Answer:

Take a photograph

Explanation:

Prints, such as fingerprint, bare foot prints and others are evidences at crime scene that a criminalist can use when carrying out examination, analysis so that a link between the scene, the victim as well as the offender can be created. Once a print is visualized by a criminalist, then the next thing is to take take a photograph of it, then further attempt to preserve it can then be made. The photographs can also stand as physical evidence.

rewrite the following program segment using a while loop instead of a for loop.

for(i=0;i<100;i++){
if (i%2===0){
print (i)
}
}​

Answers

Answer:

while i=0 or i<100:

if (i%2==0):

print(i)

Design and implement an application that reads a set of values in the range 1 to 100 from the user and then creates a chart showing how often the values appeared

Answers

Answer:

import random

import matplotlib.pyplot as plt

n = int(input("Enter the number of values: "))

mylist = random.choices(range(1,100), k= n)

plt.hist(mylist, bins=[1,10,20,30,40,50,60,70,80,90,100])

plt.xlabel(" Numbers")

plt.ylabel(" Frequency")

plt.show()

Explanation:

The python progam creates an histogram where the x axis is a list of random numbers in the range of 1 to 100. The program uses the random and matplotlib packages. The random module is used to get the a list of randomly selected values from a range of 1 to 100 and the matplotlib denoted as plt is use to plot a chart of the list as the x-axis and the frequency of the number values in the list.

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max.

Answers

Answer:

Explanation:

The following code is written in Python. It is a function that takes in a list of ints as a parameter. It then creates two variables one for sum and for max. It then loops through the list adding all the values to sum and adding only the largest value to max. Then it creates a variable called avg which calculates the average by dividing the variable sum by the number of elements in the list. Finally, it returns both avg and max to the user.

def avg_and_max(my_list):

   sum = 0

   max = 0

   for x in my_list:

       sum += x

       if x > max:

           max = x

   avg = sum / len(my_list)

   return avg, max


Whenever you press a key, click the mouse or start an application, you're sending instructions tow
which computer part?

Answers

CPU (central processing unit)

What TSO command recovers waste space that was formerly occupied by deleted or updated members and is now available for use again

Answers

Answer:

Z-command

Explanation:

In IBM cloud pack, this TSO command that performs the functions of recovery and reuse as we are given in the question above is called Z-command.

Which document would be best created using Word online
Animation
Graph
Resume
Spreadsheet

Answers

Resume       

Answer:

c

Explanation: I took the test

You must give careful consideration before adding text to a placeholder because once text has been entered into a placeholder, the placeholder cannot be deleted.

True
False

Answers

False is your answer.

Stephanie would like to know the average number of regular hours worked by her employees. In cell B11, create a formula using the AVERAGE function to find the average number of regular hours her employees work in a week (B7:B10).

Answers

Answer:

Enter the following formula in B11

=AVERAGE(B7:B10)

Explanation:

Given

Cells: B7 to B10

Required

Determine the average

Cells B7 to B10 is represented as: B7:B10

To calculate the average of these cells in Excel, follow the below steps.

Start with =Type the name of the function: AVERAGE(Enter the cell range; B7:B10Close the bracket; )

So, we have:

=AVERAGE(B7:B10)

In PowerPoint online what can you add to your presentation from the insert tab
Animations
Designs
Pictures
Transitions

Answers

Answer:

pictures

Explanation:

if you have PowerPoint you can use it side by side

picturesssssssssssss

tara has started a new job and has been assigned to work on a team. she is anxious about getting along with her new team members. what is one piece of advice you could give to tara about working with others?

A. Ignore complaints.
B. Avoid gossip.
C. Give gifts.
D. Keep your ideas to yourself.​

Answers

Answer:

B. Avoid gossip.

Explanation:

A team can be defined as a group of people or set of individuals with various skill set, knowledge and experience coming together to work on a project or task in order to successfully achieve a set goal and objective.

This ultimately implies that, a team comprises of individuals, workers or employees having complementary skills, knowledge and experience needed to execute a project or task successfully. Therefore, workers working as a team usually interact with the other team members and as a result, this enhances performance and strengthen the level of relationship they share.

In this scenario, Tara started a new job and has been assigned to work on a team. She is anxious about getting along with her new team members. Hence, one piece of advice i would give to tara about working with others is to avoid gossip. Tara should ensure her discussions with the members of the team are plain, open (non-secretive), non-personal and mostly work-related.

What happens when an arithmetic operator is applied to non-arithmetic data types such as Boolean or character

Answers

Answer:

Following are the code to this question:

#include<iostream>//defining header file

using namespace std;

int main()//defining main method

{

bool a = true;//defining bool variable that holds true value

bool b = false;//defining bool variable that holds false value

cout<<a+b<<endl;//using print method to add bool value

cout<<a-b<<endl;//using print method to subtract bool value

cout<<a*b<<endl;//using print method to multiply bool value

return 0;

}

Output:

1

1

0

Explanation:

In this code, Firstly we import the header file, and in the next step, the main method is defined, in this, two bool variable "a, b" is declared, that holds true and false value respectively, and in the next step, three print method is declared that adds, subtract, and multiply the given value and use print its calculated value.

Other Questions
Under the Articles of Confederation, on whom did the Confederation Congress rely to enforce its laws?A.individual statesB.police officersC.political partiesD.tax collectorsPLEASE HELP Solve one hundred twenty six divided by nine 14 15 16 17 PLEASE HELP! the answer choices are A. 14 B. 15 C. 16 D. 17 Which graph represents the function g(x) = |X + 4| + 2? Indirect labor includes: (You may select more than one answer. Single click the box with the question mark to produce a check mark for a correct answer and double click the box with the question mark to empty the box for a wrong answer. Any boxes left with a question mark will be automatically graded as incorrect.) check all that apply labor of employees working directly on the product.unanswered labor of the maintenance employees.unanswered labor of the clerical staff. When 0 is the divisor or the denominator, the quotient will be? PLZ helpsolve for x Please help u will get brainliest karen is reading the great gatsby in English class. So far, she has read 30 pages. If she reads 18 pages a day and there are 192 pages in the book, how many days will it take her to finish the book What is the distance from L to M?A. 10 unitsB. 14 unitsC. 2 unitsD. 100 units Please Help!The areas of two rectangles can be represented by the functions shown.Which function represents the difference in the areas, h(x) = f(x) g(x)?h(x) = 4x2 4x 11h(x) = 4x2 4x + 11h(x) = 4x2 + 4x + 11 h(x) = 4x2 4x 9 What is copied each time a cell divides? Read these lines from "Hold Fast Your Dreams."And sheltered so,May thrive and growWhat does the word thrive mean as used in the poem?conquerwithershareflourishPLZ!!!!! HELP!!!!!50 POINTSK12!!! SOMEONE HELP FAST PLEASE!!!Find the sum for the equation (2m + 2y + 5) and (1m + 7y - 10) where m=2 and y=-1a. Remember! You need to plug in the values for m and y with the numbers provided. Question 17(Multiple Choice Worth 5 points)(MC)Read the excerpt below and then answer the question that follows:The Book of DragonsChapter III The Deliverers of Their Country, an excerptBy E. NesbitIt all began with Effie's getting something in her eye. It hurt very much indeed, and it felt something like a red-hot sparkonly it seemed to have legs as well, and wings like a fly. Effie rubbed and criednot real crying, but the kind your eye does all by itself without your being miserable inside your mindand then she went to her father to have the thing in her eye taken out. Effie's father was a doctor, so of course he knew how to take things out of eyes.When he had gotten the thing out, he said: "This is very curious." Effie had often got things in her eye before, and her father had always seemed to think it was naturalrather tiresome and naughty perhaps, but still natural. He had never before thought it curious.Effie stood holding her handkerchief to her eye, and said: "I don't believe it's out." People always say this when they have had something in their eyes."Oh, yesit's out," said the doctor. "Here it is, on the brush. This is very interesting."Effie had never heard her father say that about anything that she had any share in. She said: "What?"The doctor carried the brush very carefully across the room, and held the point of it under his microscopethen he twisted the brass screws of the microscope, and looked through the top with one eye."Dear me," he said. "Dear, dear me! Four well-developed limbs; a long caudal appendage; five toes, unequal in lengths, almost like one of the Lacertidae, yet there are traces of wings." The creature under his eye wriggled a little in the castor oil, and he went on: "Yes; a bat-like wing. A new specimen, undoubtedly. Effie, run round to the professor and ask him to be kind enough to step in for a few minutes.""You might give me sixpence, Daddy," said Effie, "because I did bring you the new specimen. I took great care of it inside my eye, and my eye does hurt."The doctor was so pleased with the new specimen that he gave Effie a shilling, and presently the professor stepped round. He stayed to lunch, and he and the doctor quarreled very happily all the afternoon about the name and the family of the thing that had come out of Effie's eye.But at teatime another thing happened. Effie's brother Harry fished something out of his tea, which he thought at first was an earwig. He was just getting ready to drop it on the floor, and end its life in the usual way, when it shook itself in the spoonspread two wet wings, and flopped onto the tablecloth. There it sat, stroking itself with its feet and stretching its wings, and Harry said: "Why, it's a tiny newt!"The professor leaned forward before the doctor could say a word. "I'll give you half a crown for it, Harry, my lad," he said, speaking very fast; and then he picked it up carefully on his handkerchief."It is a new specimen," he said, "and finer than yours, Doctor."It was a tiny lizard, about half an inch longwith scales and wings.So now the doctor and the professor each had a specimen, and they were both very pleased. But before long these specimens began to seem less valuable. For the next morning, when the knife-boy was cleaning the doctor's boots, he suddenly dropped the brushes and the boot and the blacking, and screamed out that he was burnt.And from inside the boot came crawling a lizard as big as a kitten, with large, shiny wings."Why," said Effie, "I know what it is. It is a dragon like the one St. George killed."And Effie was right. That afternoon Towser was bitten in the garden by a dragon about the size of a rabbit, which he had tried to chase, and the next morning all the papers were full of the wonderful "winged lizards" that were appearing all over the country. The papers would not call them dragons, because, of course, no one believes in dragons nowadaysand at any rate the papers were not going to be so silly as to believe in fairy stories. At first there were only a few, but in a week or two the country was simply running alive with dragons of all sizes, and in the air you could sometimes see them as thick as a swarm of bees. They all looked alike except as to size. They were green with scales, and they had four legs and a long tail and great wings like bats' wings, only the wings were a pale, half-transparent yellow, like the gear-boxes on bicycles.Which describes the effect of having multiple incidents with the specimens in this section of the story? It suggests a childlike awe. It suggests a growing creature. It suggests a lack of concern. It suggests a sense of chaos. HELPPP14yCombine Like Terms for this expression.7m - 10 - 4m + 3 A coin toss bet is placed between two friends such that the person who wins four tosses first is the winner. What is the total number of possible ways in which the bet can play out Trishon placed a glass of ice cubes on the table The temperature inside the glass was 0C Thirty minutes later the glass contained water and smaller ice cubes at a temperature of 4C What does the author mean by the use of the word, "romantic" inparagraph 6? Use two details from the text to support your response.In the article: Colonizing the Moon Makes No Sense Blake thinks that the mass of a baby mouse will increase similar to what is shown on the graph below (04.02 LC) Based on the cell theory, which of the following is true? (5 points)All living and nonliving things are made of cells.All cells are too small to be seen with the naked eye.Small organisms have smaller cells than large organisms.Large organisms have more cells than small organisms.