Ask Question
3 November, 08:08

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"

+3
Answers (1)
  1. 3 November, 08:15
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers