I am trying to make a boolean test so that if one of the tire pressures is below 35 or over 45 the system outputs \"bad inflation\".
In my class I must use a boolean, wh
if (goodPressure = true)
Change this to:
if (goodPressure == true)
Or even better yet:
if (goodPressure)
Boolean comparison operators are == and !=. The = is an assignment operator.
==
!=
=
Also, you need to initially set goodPressure = true; before you check for violating conditions.
goodPressure = true;