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

Another question on Mathematics

question
Mathematics, 21.06.2019 21:50
Which equation shows the quadratic formula used correctly to solve 5x2 + 3x -4 0 for x? cos -3+ v (3) 2-4() 2(5) 3+ |(3)² +4() 205) 3+ (3) 2-4() -3+ v (3)² +4()
Answers: 1
question
Mathematics, 21.06.2019 23:30
Find measure angle 1 and measure angle 3 in the kite the diagram is not drawn on the scale
Answers: 1
question
Mathematics, 22.06.2019 02:00
Reading tests are compared for two students. sara got 98, 100, 65, 78, 98, 46, 100, 100, 45, and 50 on her reading test. lee got 97, 67, 89, 99, 100, 45, 79, 89, 58, and 67 on his reading test.
Answers: 1
question
Mathematics, 22.06.2019 02:30
Factor this polynomial completely. 12x^2+ x-6
Answers: 1
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
question
Mathematics, 20.07.2019 17:00
question
Mathematics, 20.07.2019 17:00
question
Mathematics, 20.07.2019 17:00
question
Social Studies, 20.07.2019 17:00
Questions on the website: 13722359