subject

The log2 of a given number N is given by M in the equation N 5 2M. Using integer arithmetic, the value of M is approximately equal to the number of times N can be evenly divided by 2 until it becomes 0. Write a loop that computes this approxima- tion of the log2 of a given number N. You can check your code by importing the math. log function and evaluating the expression round(math. log(N, 2)) (note that the math. log function returns a floating-point value).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Read these lines from beowulf.often scyld scefing seized mead-benches from enemytroops, from many a clan, he terrified warriors, even thoughfirst he was found a waif, best explains why the author includes this information in theexposition? a. to emphasize that a hero must learn to be fierceb. to remember the famous story of a popular heroc. to express sadness about losing the old heroesd. to see whether people still respect the old heroes
Answers: 1
question
Computers and Technology, 24.06.2019 19:00
Luis is cloud-based( microsoft bot framework). true false
Answers: 1
You know the right answer?
The log2 of a given number N is given by M in the equation N 5 2M. Using integer arithmetic, the val...
Questions
question
Mathematics, 19.11.2020 22:10
question
Mathematics, 19.11.2020 22:10
question
English, 19.11.2020 22:10
question
Mathematics, 19.11.2020 22:10
question
Social Studies, 19.11.2020 22:10
Questions on the website: 13722360