Skip to main content

Practice Code Structure

Section 1.32 Fill-in-the-blank

Checkpoint 1.32.1.

The function eligibleForDiscount() takes an integer input and returns a boolean. Complete the function by filling in the blanks so that it returns true when the age is less than 18 or greater than 60 and otherwise it returns false.
public static boolean eligibleForDiscount(int age) {   
  	   return .....Blank.......... ; 
}
Write your responses here:
Blank:
You have attempted 1 of 2 activities on this page.