Visual Basic
Given an integer variable count, write a statement that writes the value of count to standard output.
LANGUAGE: Visual Basic CHALLENGE: Given an integer variable count, write a statement that writes the value of count to standard output.
Read MoreGiven a floating-point variable fraction, write a statement that writes the value of fraction to standard output. Do not write anything else to standard output — just the value of fraction.
LANGUAGE: Visual Basic CHALLENGE: Given a floating-point variable fraction, write a statement that writes the value of fraction to standard output. Do not write anything else to standard output — just the value of fraction.
Read MoreWrite a statement that prints the following to standard output: “i=”. Just write one statement that generates the message above: do not generate any extraneous spaces. Do not declare variables, do not write a main() function, do not write a whole program.
LANGUAGE: Visual Basic CHALLENGE: Write a statement that prints the following to standard output: “i=”. Just write one statement that generates the message above: do not generate any extraneous spaces. Do not declare variables, do not write a main() function, do not write a whole program.
Read MoreGiven an integer variable i and a floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f. Thus, if i has the value 25 and f has the value 12.34, the output would be i=25 f=12.34.
LANGUAGE: Visual Basic CHALLENGE: Given an integer variable i and a floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f. Thus, if i has the value 25 and f has the value 12.34, the output would be i=25 f=12.34. But if i has the…
Read MoreWrite a statement that displays Hello, world to a message box.
LANGUAGE: Visual Basic CHALLENGE: Write a statement that displays Hello, world to a message box.
Read MoreWrite a statement that displays Hello World in a MessageBox.
LANGUAGE: Visual Basic CHALLENGE: Write a statement that displays Hello World in a MessageBox.
Read MoreSuppose your name was Alan Turing. Write a statement that would display your last name, followed by a comma, followed by a space and your first name in a MessageBox.
LANGUAGE: Visual Basic CHALLENGE: Suppose your name was Alan Turing. Write a statement that would display your last name, followed by a comma, followed by a space and your first name in a MessageBox.
Read MoreAssume that message is a String variable. Write a message to display its value in a MessageBox.
LANGUAGE: Visual Basic CHALLENGE: Assume that message is a String variable. Write a message to display its value in a MessageBox.
Read MoreAssume that word is a String variable. Write a statement to display the message “Today’s Word-Of-The_Day is: ” followed by the value of word in a MessageBox.
LANGUAGE: Visual Basic CHALLENGE: Assume that word is a String variable. Write a statement to display the message “Today’s Word-Of-The_Day is: ” followed by the value of word in a MessageBox.
Read MoreOf the following variable names, which is the best one for keeping track of whether a patient has a fever or not?
LANGUAGE: Visual Basic CHALLENGE: Of the following variable names, which is the best one for keeping track of whether a patient has a fever or not? temperature feverTest hasFever fever
Read MoreWhich of the following is NOT a legal identifier? outrageouslyAndScockinglyLongRun
LANGUAGE: Visual Basic CHALLENGE: Which of the following is NOT a legal identifier? outrageouslyAndScockinglyLongRunon _42 _ lovePotionNumber9 7thheaver
Read MoreWhich is the best identifier for a variable to represent the amount of money your boss pays you each month?
LANGUAGE: Visual Basic CHALLENGE: Which is the best identifier for a variable to represent the amount of money your boss pays you each month? notEnough wages paymentAmount monthlyPay money
Read More