English, asked by tamannatamanna054, 6 months ago

State the two steps of how data gets converted into binary.​

Answers

Answered by sreemathis9pais
2

Explanation:

Computers convert text and other data into binary by using an assigned ASCII value. Once the ASCII value is known that value can be converted into binary. In the following example, we take the word hope, and show how it is converted into binary that the computer understands.

Answered by taniya00
2

Answer:

Number of steps required to convert binary number to one

Given a binary strings Str, the task is to

print the number of steps required to convert it to one by the following operations

1. If 'S' is odd add one to it

2. If 'S' is even divide it by 2

Example:

Input : Str= " 101110"

output :12

input: Str=101110"

output: 8

Similar questions