Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. Given a variable modelYear write a statement that prints the message "RECALL" to standard output if the value of modelYear falls within that range.

Respuesta :

Answer:

Using Java:

if ((modelYear >= 2001) && (modelYear <= 2006)) {

   System.out.println("RECALL");

}

Explanation:

Assumption: the variable modelYear is given, it is an integer and exists in memory.