Question
Using Python 3: On the NASA space shuttle, three computers were in use simultaneously. Computations were performed by all three computers, and the result of
Using Python 3:
On the NASA space shuttle, three computers were in use simultaneously. Computations were performed by all three computers, and the result of each computation was put to a vote. If at least two of the computers provided the same result, then that result was used. But if all computers each provided a different result, then the computation was discarded. Write a function that has three parameters whose values represent three different computational results. If at least two of the inputs are the same, your function should return that value. If all three are different, return the word "ERROR" instead. Write a main() that tests your function extensively.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started