Posts Tagged ‘Visual Basic’
Clunker Motors Inc is recalling all vehicles from model years 1995-1998 and 2004-2006. A bool variable named recalled has been declared. Given an int variable modelYear write a statement that assigns true to recalled if the value of modelYear falls within the two recall ranges (the first range being 1995-1998, the second range being 2004-2006) and assigns false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc is recalling all vehicles from model years 1995-1998 and 2004-2006. A bool variable named recalled has been declared. Given an int variable modelYear write a statement that assigns true to recalled if the value of modelYear falls within the two recall ranges (the first range being 1995-1998, the second…
Read MoreClunker Motors Inc is recalling all vehicles from model years 1995 – 1998 and 2004 – 2006. A bool variable named recalled 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 (2001-2006) and assigns false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc is recalling all vehicles from model years 1995 – 1998 and 2004 – 2006. A bool variable named recalled 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 (2001-2006)…
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an upper-case letter.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an upper-case letter.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a lower-case letter.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a lower-case letter.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a decimal digit (0-9).
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a decimal digit (0-9).
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an octal (Base 8) digit (0-7).
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an octal (Base 8) digit (0-7).
Read MoreAssume that s is a string. Write an expression whose value is true if and only if the value of s would come between “mortgage” and “mortuary” in the dictionary.
LANGUAGE: Visual Basic CHALLENGE: Assume that s is a string. Write an expression whose value is true if and only if the value of s would come between “mortgage” and “mortuary” in the dictionary.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a letter.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a letter.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is alphanumeric, that is either a letter or a decimal digit.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is alphanumeric, that is either a letter or a decimal digit.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an hexadecimal (Base 16) digit (0-9 plus A-F or a-f).
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is an hexadecimal (Base 16) digit (0-9 plus A-F or a-f).
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is NOT un upper-case letter.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is NOT un upper-case letter.
Read MoreAssume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is NOT a letter.
LANGUAGE: Visual Basic CHALLENGE: Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is NOT a letter.
Read More