Visual Basic
Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.
LANGUAGE: Visual Basic CHALLENGE: Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.
Read MoreAssume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been declared and initialized. Write a statement that adds 1 to each of these count variables (isoCount, triangleCount, and polygonCount) if isIsosceles is true.
LANGUAGE: Visual Basic CHALLENGE: Assume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been declared and initialized. Write a statement that adds 1 to each of these count variables (isoCount, triangleCount, and polygonCount) if isIsosceles is true.
Read MoreAssume that the variables gpa, dealsnList and studentName, have been declared and initialized. Write a statement that both adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.
LANGUAGE: Visual Basic CHALLENGE: Assume that the variables gpa, dealsnList and studentName, have been declared and initialized. Write a statement that both adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.
Read MoreGiven the integer variables x and y, write a fragment of code that assigns the larger of x and y to another integer variable max.
LANGUAGE: Visual Basic CHALLENGE: Given the integer variables x and y, write a fragment of code that assigns the larger of x and y to another integer variable max.
Read MoreClunker Motors Inc is recalling all vehicles from model years 2001 – 2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within that range.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc is recalling all vehicles from model years 2001 – 2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within that range.
Read MoreClunker Motors Inc is recalling all vehicles in its Extravagant line from model years 1999 – 2002. Given an int variable modelYear and a string modelName write a statement that prints the message “RECALL” to standard output if the values of modelYear and modelName match the recall details.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc is recalling all vehicles in its Extravagant line from model years 1999 – 2002. Given an int variable modelYear and a string modelName write a statement that prints the message “RECALL” to standard output if the values of modelYear and modelName match the recall details.
Read MoreClunker 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. Given an int varialbe modelYear and a string modelName write a statement that prints the message “RECALL” to standard output if the values of modelYear and modelName match the recall details.
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. Given an int varialbe modelYear and a string modelName write a statement that prints the message “RECALL” to standard output if the…
Read MoreClunker Motors Inc is recalling all vehicles from model years 1995 – 1998 and 2004 – 2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within those two ranges.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc is recalling all vehicles from model years 1995 – 1998 and 2004 – 2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within those two ranges.
Read MoreClunker 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.
Read MoreClunker Motors Inc. is recalling all vehicles from model years 2001-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 recall range and assigns false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc. is recalling all vehicles from model years 2001-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 recall range and assigns false otherwise. Do not use an…
Read MoreClunker Motors Inc. is recalling all vehicles from model years 2001-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 recall range and assigns false otherwise.
LANGUAGE: Visual Basic CHALLENGE: Clunker Motors Inc. is recalling all vehicles from model years 2001-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 recall range and assigns false otherwise.
Read MoreWrite a literal representing the false value.
LANGUAGE: Visual Basic CHALLENGE: Write a literal representing the false value.
Read More