Clunker Motos Inc is recalling all vehicles from m odel years 2001 – 2006. Given an int variable modelYear write a statement that prints the message “NO RECALL” to standard output if the value of modelYear DOES NOT fall within that range.

LANGUAGE: Visual Basic

CHALLENGE:

Clunker Motos Inc is recalling all vehicles from m odel years 2001 – 2006. Given an int variable modelYear write a statement that prints the message “NO RECALL” to standard output if the value of modelYear DOES NOT fall within that range.

SOLUTION:

If modelYear < 2001 Or modelYear > 2006 Then
    MessageBox.Show("NO RECALL")
End If