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
Which of the following occupations is the most likely o require working weekends and night shifts
Juliette [100K]
What are the choices?
5 0
3 years ago
Read 2 more answers
Software used the control a computer's hardware
s344n2d4d5 [400]
<span>Software used the control a computer's hardware is drivers. I.e Video, Sound, Printer etc.</span>
3 0
3 years ago
Why does 5 g mm wave require more cells to achieve a better signal
umka2103 [35]

Answer:

Higher frequencies have a shorter range.

7 0
3 years ago
Write the HTML to create a hyperlink to the named fragment designated by “top”.
Anna007 [38]

what are you asking for


8 0
4 years ago
The ____ directory contains configuration files that the system uses when the computer starts.
larisa [96]
The /etc directory contains configuration files that the system uses when the computer starts.
5 0
3 years ago
Other questions:
  • Is the protocol that specifies how web browsers and servers communicate.?
    11·1 answer
  • Your company leases a very fast internet connection and pays for it based on usage. you have been asked by the company president
    12·1 answer
  • Which of the following is a bad password? Select one: a. The acronym for the title of your favorite song plus the year it came o
    11·1 answer
  • How do u make a bored builder
    8·2 answers
  • In 5-10 sentences, describe how computer networks work.
    6·1 answer
  • what is hardware ? Name the four functional hardware of a computer system Define each of them with the help of a diagram​
    12·1 answer
  • Bao bì chủ động active packaging và bao bì thông minh intelligent packaging khác biệt như thế nào
    15·1 answer
  • Logan has developed an excellent presentation with interesting content. He received great feedback on the evaluation
    10·1 answer
  • You are dropping your friend back home after a night at the movies. From the car, she turns on the indoor lights in her home usi
    9·1 answer
  • 20
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!