Visual Basic
Given two variables, isEmpty of type boolean, indicating whether a class roster is empty or not, and numberOfCredits of type integer, 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 one or 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 integer, 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 one or three credits.
Read MoreWrite an expression that evaluates to true if and only if the value of the integer variable x is equal to zero.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if and only if the value of the integer variable x is equal to zero.
Read MoreWrite an expression that evaluates to true if and only if the variables profits and losses are exactly equal.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if and only if the variables profits and losses are exactly equal.
Read MoreWrite an expression that evaluates to true if the value of index is greater than the value of lastIndex.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the value of index is greater than the value of lastIndex.
Read MoreWorking overtime is defined as having worked more than 40 hours during the week. Given the variable hoursWorked, write an expression that evaluates to true if the employee worked overtime.
LANGUAGE: Visual Basic CHALLENGE: Working overtime is defined as having worked more than 40 hours during the week. Given the variable hoursWorked, write an expression that evaluates to true if the employee worked overtime.
Read MoreGiven the variables numberOfMen and numberOfWomen, write an expression that evaluates to true if the number of men is greater than or equal to the number of women.
LANGUAGE: Visual Basic CHALLENGE: Given the variables numberOfMen and numberOfWomen, write an expression that evaluates to true if the number of men is greater than or equal to the number of women.
Read MoreGiven a double variable called average, write an expression that is true if and only if the variable’s value is less than 60.0.
LANGUAGE: Visual Basic CHALLENGE: Given a double variable called average, write an expression that is true if and only if the variable’s value is less than 60.0.
Read MoreGiven an int variable grossPay, write an expression that evaluates to true if and only if the value of grossPay is less than 10,000.
LANGUAGE: Visual Basic CHALLENGE: Given an int variable grossPay, write an expression that evaluates to true if and only if the value of grossPay is less than 10,000.
Read MoreWrite an expression that evaluates to true if and only if the integer x is greater than the integer y.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if and only if the integer x is greater than the integer y.
Read MoreWrite an expression that evaluates to true if the value x is greater than or equal to y.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the value x is greater than or equal to y.
Read MoreWrite an expression that evaluates to true if and only if the integer variable numberOfShares is less than 100.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if and only if the integer variable numberOfShares is less than 100.
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 a space 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 a space character.
Read More