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 13:30
What is the effect on the graph of the parent function f(x) = x when f(x) is replaced with 3f(x)? a) shifts the line 3 units up b) shifts the line 3 units down c) increases the slope of the line by a factor of 3 d) decreases the slope of the line by a factor of 3
Answers: 3
question
Mathematics, 21.06.2019 16:00
30 pts, will mark brainliestwhat is the period of the sinusoidal function? (picture 1)what is the minimum of the sinusoidal function? (picture2)what is the maximum of the sinusoidal function? (picture 3)
Answers: 3
question
Mathematics, 21.06.2019 17:30
Your client has saved $1,860 for a down payment on a house. a government loan program requires a down payment equal to 3% of the loan amount. what is the largest loan amount that your client could receive with this program
Answers: 3
question
Mathematics, 21.06.2019 19:00
What is the expression in factored form? -x^2 + 3x + 28 a. (x-7)(x-4) b. -(x-7)(x+4) c. (x+4)(x+7) d. -(x-4)(x+7)
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
question
Mathematics, 05.05.2020 06:44
question
Mathematics, 05.05.2020 06:44
question
Mathematics, 05.05.2020 06:44
question
Mathematics, 05.05.2020 06:44
Questions on the website: 13722367