Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. A bool variable named norecall has been declared. Given an int variable modelYear write a statement that assigns true to norecall if the value of modelYear does NOT fall within the two recall ranges and assigns false otherwise.

Respuesta :

Limosa

Answer:

Following are the module in the Python Programming Language.

if((modelYear > 1994 and modelYear < 1999 )or(modelYear > 2003 and modelYear < 2007 )):

   norecall = False

else:

   norecall = True

Explanation:

Following are the description of the program.

All motors vehicles from model years are again called by the following company. A boolean data type variable was declared that is 'norecall'. Due to an integer variable modelYear compose the assertion assigning true to the variable 'norecall', if the variable modelYear initialization is NOT within the two recall frequencies and initialize false otherwise.