Category: Visual Basic

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.

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.

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 More

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.

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.

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 More

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.

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.

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 More

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.

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.

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 More

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 values of modelYear and modelName match the recall details.

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 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 More

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.

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.

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 More

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.

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.

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 More

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.

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.

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 More

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.

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.

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 More

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.

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 More