Ask Question
17 July, 15:49

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"

+1
Answers (1)
  1. 17 July, 16:17
    0
    I'm pretty sure the answer is A
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers