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
denis-greek [22]
3 years ago
11

Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binar

y. For an integer x, the algorithm is:
As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x / 2
Note: The above algorithm outputs the 0's and 1's in reverse order.
Ex: If the input is 6, the output is:
011
(6 in binary is 110; the algorithm outputs the bits in reverse).
Computers and Technology
1 answer:
MAXImum [283]3 years ago
3 0

Answer:

thats what i was about to ask. im not sure

Explanation:

sorry   '-'

You might be interested in
WHAT is the USE OF RIBBON TAB​
kifflom [539]
A command bar that organizes a program's features into a series of tabs
6 0
3 years ago
Which type of footwear should be worn while working on a hybrid vehicle?
andriy [413]

Comfortable sneakers

7 0
4 years ago
Read 2 more answers
Explain the relationship between one’s point of view and understanding spoken text
adell [148]

In spoken and audio texts the tone and accompanying sounds convey a point of view. Point of view therefore constructs an attitude towards the subject matter in a text which the reader, listener or viewer is invited to adopt.

Please have a wonderful day <3

6 0
2 years ago
A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popula
Irina-Kira [14]

Answer:

2^32 times as many values can be represented

Explanation:

32-bit. This means that the number is represented by 32 separate one’s and zero’s. 32 bits of 2 possible states = 2^32=4,294,967,296 possible values.

Integer meaning that only whole multiples of one are accepted.

Signed meaning that negative values are accepted. This halves the number of possible positive values (roughly), so the largest number you can represent is 2^31–1=2,147,483,647, but instead of 0, the smallest number you can represent is -2,147,483,648. An unsigned 32-bit integer, by contrast, can represent anything from 0 to 4,294,967,295.

7 0
3 years ago
How do you answer a question on this app?!? Do you comment on the question? I need a reminder! (I haven't been on this app in a
yKpoI14uk [10]
You just click on a question and then you'll see the word "answer" at the bottom of the questions and click on the word to answer the question

6 0
4 years ago
Other questions:
  • What type of scientists studies tree rings to determine the history of an area?
    9·2 answers
  • In many cases, a subquery can be restated as a/an ______________.
    13·1 answer
  • What is the output of the following snippet if the user enters a value of 11 for the variable x and 4 for the variable y? x=int(
    5·1 answer
  • The domain name service (dns is a distributed database that allows users to communicate with each other computers by:
    7·1 answer
  • Which layer of the OSI model is responsible for ensuring flow control so that the destination station does not receive more pack
    7·1 answer
  • What is the answer to this question?
    10·1 answer
  • An abstract method ____.
    6·1 answer
  • When would you use the AutoFit to Contents option?
    15·1 answer
  • What gaming PC should I get
    14·2 answers
  • List four things that must be taken into consideration when evaluating different resources of information (and explain ANY ONE f
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!