subject
Mathematics, 09.10.2019 00:00 unicornsflyhigh

Write a program that reads a 4-bit binary number from the keyboard as a string and then converts it into decimal. for example, if the input is 1100, the output should be 12. (hint: break the string into substrings and then convert each substring to a value for a single bit. if the bits are b0, b1, b2, and b3, the decimal equivalent is 8b0+ 4b1+ 2b2+ b3.)

ansver
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 19:00, asmith219771
What is the expression in factored form? -20x^2 - 12x a. 4x(5x+3) b. -4x(5x-3) c. -4(5x+3) d. -4x(5x+3)
Answers: 2
image
Mathematics, 21.06.2019 20:00, sum72
Triangle knm is what is true about the sides of knm
Answers: 3
image
Mathematics, 21.06.2019 23:30, math3130
Which number is located at point a on the number line? a number line is shown from negative 10 to 10 with each interval mark on the number line representing one unit. point a is labeled one interval mark to the right of negative 5.
Answers: 1
image
Mathematics, 21.06.2019 23:30, teenybug56
If a runner who runs at a constant speed of p miles per hour runs a mile in exactly p minutes what is the integer closest to the value p
Answers: 2
You know the right answer?
Write a program that reads a 4-bit binary number from the keyboard as a string and then converts it...

Questions in other subjects: