Answer:
For question a, it simplifies. If you re-express it in boolean algebra, you get:
(a + b) + (!a + b)
= a + !a + b
= b
So you can simplify that circuit to just:
x = 1 if b = 1
(edit: or rather, x = b)
For question b, let's try it:
(!a!b)(!b + c)
= !a!b + !a!bc
= !a!b(1 + c)
= !a!b
So that one can be simplified to
a = 0 and b = 0
I have no good means of drawing them here, but hopefully the simplification helped!
Answer:
CLS
INPUT"Enter any three numbers";a,b,c
IF a>b AND a>c THEN
PRINT a;"is the greatest"
ELSEIF b>a AND b>c THEN
PRINT b;"is the greatest"
ELSE
PRINT c;"is the greatest"
ENDIF
END
Answer:
3 parameters are passed into the function.
1 value will be returned from the function.
Explanation:
From the function definition "function sum(first, second, third)", we can see that there are three value/parameters are passed in the function.Then variable "result" will be the sum all the three values. After that it will print the all three values in new line. Then the function will return one value which is the sum of all three that is value of "result".As there is only one value returned by the return statement in the function.
The answer is B. It matters which way you park your car . Your car should also be parallel to the carb but with the wheels inward to the right