filmov
tv
Java Practice It | Self-Check 4.1: logicalTests | if, else, Boolean logic, expression
Показать описание
Summary:
Looking at different logical tests that can be used in if else statements
More practice its:
Problem:
Question:
Translate each of the following English statements into logical tests that could be used in an if/else statement. Write the appropriate logical test for each statement below. Assume that three int variables, x, y, and z, have already been declared.
(Note: This problem is currently not very well implemented in Practice-It. Right now our system is just checking whether your answer exactly matches our expected answer, but some other correct answers might be marked as incorrect even though they would work. We plan to improve the system in the future. Sorry for the inconvenience.)
Looking at different logical tests that can be used in if else statements
More practice its:
Problem:
Question:
Translate each of the following English statements into logical tests that could be used in an if/else statement. Write the appropriate logical test for each statement below. Assume that three int variables, x, y, and z, have already been declared.
(Note: This problem is currently not very well implemented in Practice-It. Right now our system is just checking whether your answer exactly matches our expected answer, but some other correct answers might be marked as incorrect even though they would work. We plan to improve the system in the future. Sorry for the inconvenience.)