Fix both incomplete conditionals so they describe combinational logic. Shut off the computer only when it is overheated. Keep driving only while you have not arrived and the gas tank is not empty; drive output must be 0 in all other cases.
If Statement: Avoiding Latches
easyprocedurescombinationallatch-avoidance