1. Distinguish between the if statement and the if-else statement, and give an example of each. 2. Given a person’s age in the integer variable age, write Java statements to test whether a person is...


1. Distinguish between the if statement and the if-else statement, and give an example of each.


2. Given a person’s age in the integer variable age, write Java statements to test whether a person is younger than 21 years of age. If so, display “Minor”; otherwise display “Of age.”


3. Evaluate each of the following expressions, where x, y, and z contain 1, 3, and 5, respectively:



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here