Visual Basic
Given the char variable c, write an expression that is true if and only if the value of c is not the space character.
LANGUAGE: Visual Basic CHALLENGE: Given the char variable c, write an expression that is true if and only if the value of c is not the space character.
Read MoreWrite an expression that evaluates to true if the value of the integer variable x is divisible (with no remainder) by the integer variable y.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the value of the integer variable x is divisible (with no remainder) by the integer variable y. (Assume that y is not zero.)
Read MoreWrite an expression that evaluates to true if the value of the integer variable widthOfBox is not evenly divisible by the integer variable widthOfBook. (Assume that widthOfBook is not zero.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the value of the integer variable widthOfBox is not evenly divisible by the integer variable widthOfBook. (Assume that widthOfBook is not zero. Note: evenly divisible means divisible without a non-zero remainder.)
Read MoreWrite an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder) by the integer variable numberOfParticipants.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder) by the integer variable numberOfParticipants. (Assume that numberOfParticipants is not zero.)
Read MoreWrite an expression that evaluates to true if the integer variable x contains an even value, and false if it contains an odd value.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that evaluates to true if the integer variable x contains an even value, and false if it contains an odd value.
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 newline 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 newline character.
Read MoreAssume that c is a char variable that has been delcared and already given a value. Write an expression whose value is true if and only if c is a tab character.
LANGUAGE: Visual Basic CHALLENGE: Assume that c is a char variable that has been delcared and already given a value. Write an expression whose value is true if and only if c is a tab character.
Read MoreAssume that name has been declared suitably for storing names (like “Amy”, “Fritz” and “Moustafa”) Write some code that areads a value from a text box named textBox into name then prints the message “Greetings, NAME!!!” where NAME is replaced the value that was read into name. For example, if your code read in “Hassan” it would print out “Greetings, Hassan!!!”.
LANGUAGE: Visual Basic CHALLENGE: Assume that name has been declared suitably for storing names (like “Amy”, “Fritz” and “Moustafa”) Write some code that areads a value from a text box named textBox into name then prints the message “Greetings, NAME!!!” where NAME is replaced the value that was read into name. For example, if your code…
Read MoreAssume you have a text box named textBox. Write some code that inputs the value in the text box into a variable name and then outputs “Greetings, NAME” to a message box (where NAME is replace by the value that was input read in the variable. For example, if the text box originally contained “Rachel” your code would display “Greetings, Rachel” in the message box.
LANGUAGE: Visual Basic CHALLENGE: Assume you have a text box named textBox. Write some code that inputs the value in the text box into a variable name and then outputs “Greetings, NAME” to a message box (where NAME is replace by the value that was input read in the variable. For example, if the text box…
Read MoreWrite a statement that reads a word from standard input into firstWord. Assume that firstWord has already been declared as an char array large enough to hold a 50-letter word.
LANGUAGE: Visual Basic CHALLENGE: Write a statement that reads a word from standard input into firstWord. Assume that firstWord has already been declared as an char array large enough to hold a 50-letter word.
Read MoreWrite an expression that attempts to read a double value from the TextBox textBox and stores it in a Double variable, x that has already been declared.
LANGUAGE: Visual Basic CHALLENGE: Write an expression that attempts to read a double value from the TextBox textBox and stores it in a Double variable, x that has already been declared.
Read MoreGiven an int variable datum that has already been declared, write a statement that reads an integer value from standard input into this variable.
LANGUAGE: Visual Basic CHALLENGE: Given an int variable datum that has already been declared, write a statement that reads an integer value from standard input into this variable.
Read More