Visual Basic
Clunker Motors, Inc is recalling all vehicles in its Extravagant line from model years 1999 – 2002 as well as all vehicles in its Guzzler line from model years 2004 – 2007. A bool variable named recalled has been declared.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors, Inc is recalling all vehicles in its Extravagant line from model years 1999 – 2002 as well as all vehicles in its Guzzler line from model years 2004 – 2007. A bool variable named recalled has been declared. Given an int variable modelYear and a string modelName write a statement…
Read MoreClunker Motors, Inc is recalling all vehicles in its Extravagant line from model years 1999-2002. A bool variable named recalled has been declared. Given an int variable modelYear and a string modelName write a statement that assigns true to recalled if the values of modelYear and modelName match the recall details and assigns false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors, Inc is recalling all vehicles in its Extravagant line from model years 1999-2002. A bool variable named recalled has been declared. Given an int variable modelYear and a string modelName write a statement that assigns true to recalled if the values of modelYear and modelName match the recall details and…
Read MoreWrite an expression that evaluates to true if and only if the value of the boolean variable workedOvertime is true.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if and only if the value of the boolean variable workedOvertime is true.
Read MoreAssume that a bool variable isQuadrilateral has been declared, and that an int variable, numberOfSides has been declared and initialized. Write a statement that assigns the value true if numberOfSides is exactly 4 and false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Assume that a bool variable isQuadrilateral has been declared, and that an int variable, numberOfSides has been declared and initialized. Write a statement that assigns the value true if numberOfSides is exactly 4 and false otherwise.
Read MoreAssume that a bool variable worked Overtime has been declared, and that an int variable hoursWorked has been declared and initialized. Write a statement that assigns the value true if hoursWorked is greater than 40 and false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Assume that a bool variable worked Overtime has been declared, and that an int variable hoursWorked has been declared and initialized. Write a statement that assigns the value true if hoursWorked is greater than 40 and false otherwise.
Read MoreWrite a literal representing the true value.
LANGUAGE: Visual Basic CHALLENGE: Write a literal representing the true value.
Read MoreGiven that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) and y is negative.
LANGUAGE: Visual Basic CHALLENGE: Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is positive (including zero) and y is negative.
Read MoreGiven that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is postivie (including zero) or y is negative.
LANGUAGE: Visual Basic CHALLENGE: Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is postivie (including zero) or y is negative.
Read MoreGiven two variables, isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is empty or the class is exactly three credits.
LANGUAGE: Visual Basic CHALLENGE: Given two variables, isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is empty or the class is exactly three credits.
Read MoreGiven the variables termperature and humidity, write an expression that evaluates to true if and only if the termperature is greater than 90 and the humidity is less than 10.
LANGUAGE: Visual Basic CHALLENGE: Given the variables termperature and humidity, write an expression that evaluates to true if and only if the termperature is greater than 90 and the humidity is less than 10.
Read MoreAssume that c is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if c is what is called a whitespace character
LANGUAGE: Visual Basic CHALLENGE: Assume that c is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if c is what is called a whitespace character (that is a space or a tab or a newline– none of which result in ink being…
Read MoreGiven two variables, isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is not empty and the class is more than 2 credits.
LANGUAGE: Visual Basic CHALLENGE: Given two variables, isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is not empty and the class is more than 2 credits.
Read More