Build a 3bit counter which counts in the following sequence
Build a 3-bit counter which counts in the following sequence: 0, 2, 4.6, 5, 3, 1.0. When CE is high on the clock edge the current value of the counter advances to the next number in the counting sequence. So 0, 2, 4, 6, 5, 3, 1, 0, 2, 4, 6, 53, 1, 0... is the sequence of states this counter will go through when CE is high. When CE is low the counter stays in die same state. You may use only 3 D Flip-Flops and logic gates. The counter\'s 3 output bits must come directly from the Flip-Flops. The counter should also have a TC output which is high at 1 (the last state before the sequence is repeated).
Solution
We have given scatter plot of Cost versus gallons.
Consider the two points (10,30) and (6,19).
Now from these two points we have to find slope and intercept and then we find equation.
slope = (y2-y1) / (x2-x1)
= (19-30) / (6-10) = -11/-4 = 2.75
Then the equation of line is,
(y-y1) = slope*(x-x1)
(y - 30) = 2.75 (x - 10)
y - 30 = 2.75*x - 2.75*10
y = 30 + 2.75*x - 27.5
y = 2.75*x + 2.5
