A good answer might be:The answer is seen below. | |
Use Nested-ifs when Needed
In this code fragment,
the "guard" that prevents division by
zero is the first It is easy to get caught up in complicated boolean expressions and to use them when a nested-if is more appropriate. Notice that the solution to the question (at left) is probably the better program because it is easier to understand and writes better messages to the monitor. | |
QUESTION 7:
What is the true/false value of: Click Here after you have answered the question12 > 6 || 18 > 1 |