Answer:
Certain country in the Caribbean Sea recently held an election to choose its president. Every vote cast was electronic, but unfortunately, a recent power surge caused a malfunction in the system just before votes were counted. The only information saved consists of the following facts:
Explanation:
• All the N citizens casted their vote.
• Exactly one candidate received more than N/2 votes.
• We don’t know how many candidates there were.
You are hired to help using your expertise in algorithms.
Answer:
1. A
2. B
Explanation:
1. For an AND truth table to output true, all it input must be true. If one or any of the input is false, the output will be false. The truth table for AND is written below:
INPUT INPUT OUTPUT
FALSE FALSE FALSE
FALSE TRUE FALSE
TRUE FALSE FALSE
TRUE TRUE TRUE
2. The Internal Revenue Service web site is a good search tool when looking for income tax information. The federal government main web site might look like a correct option but one must understand that the federal government will only make the policy while the Internal Revenue Service will implement the policy.