Answer:
Replace the comment with:
(c) double hours = Math.abs (marker1 - marker2) / 60.0;
Explanation:
See attachment for right presentation of question
Analyzing the options:
(a): May return a negative result
This option will return a negative value if marker1 is less than marker2 because it subtracts the absolute value of marker2 from the absolute value marker1.
This literally is not different from marker1 - marker2
(b): Incorrect expression
This divides only marker2 by 60, then subtracts the quotient from marker1. This is not the expected expression.
(c) This option is correct
This correctly calculate the positive difference between marker1 and marker2 and the result is divided by 60.0 (note 60.0 not 60)
(d) & (e) Integer division
When a variable declared as double is divided by an integer variable or value, the result of the computation is not always accurate due to approximation
The answers are as follows:
a) F(A, B, C) = A'B'C' + A'B'C + A'BC' + A'BC + AB'C' + AB'C + ABC' + ABC
= A'(B'C' + B'C + BC' + BC) + A((B'C' + B'C + BC' + BC)
= (A' + A)(B'C' + B'C + BC' + BC) = B'C' + B'C + BC' + BC
= B'(C' + C) + B(C' + C) = B' + B = 1
b) F(x1, x2, x3, ..., xn) = ∑mi has 2n/2 minterms with x1 and 2n/2 minterms
with x'1, which can be factored and removed as in (a). The remaining 2n1
product terms will have 2n-1/2 minterms with x2 and 2n-1/2 minterms
with x'2, which and be factored to remove x2 and x'2, continue this
process until the last term is left and xn + x'n = 1
I don’t see any of “the following numbers”
CAD is the answer you require, but it may also be Spread sheet
Hope this helped ♥︎
To what it seems like, it’s d