Ask Question
11 October, 08:43

Write a program which prompts user to enter a character, if the user presses " Z‟, the program asks user to enter a number. In this case the program implements 5-input majority voting logic which is explained as follows. The value of the number represented by the five leftmost bits of Register-B is tested. If the number of logic '1' bits (in the 5 leftmost bits) is greater than the number of logic '0' bits, the program should output: "The number of 1's in the 5 left most bits is greater than the number of 0's". If the number of logic '0' bits (in the 5 leftmost bits) is greater than the number of logic '1' bits, the program should output: "The number of 0's in the 5 left most bits is greater than the number of 1's"

+4
Answers (1)
  1. 11 October, 09:25
    0
    I'm pretty sure the answer is A
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program which prompts user to enter a character, if the user presses " Z‟, the program asks user to enter a number. In this ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers