Category: Visual Basic

Write the code for a message whose method name is sendNumber. There is one argument for this message, which is an int. Send the number 5 as an argument int he message.

Write the code for a message whose method name is sendNumber.  There is one argument for this message, which is an int.  Send the number 5 as an argument int he message.

LANGUAGE: Visual Basic CHALLENGE: Write the code for a message whose method name is sendNumber.   There is one argument for this message, which is an int.   Send the number 5 as an argument int he message....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

printErrorDescription is a function that accepts one int parameter and returns no value. Write a statement that calls the function printErrorDescription, passing it the value 14.

printErrorDescription is a function that accepts one int parameter and returns no value.  Write a statement that calls the function printErrorDescription, passing it the value 14.

LANGUAGE: Visual Basic CHALLENGE: printErrorDescription is a function that accepts one int parameter and returns no value.   Write a statement that calls the function printErrorDescription, passing it the value 14....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write the code for a message whose method name is sendSignal. There are no arguments for this message.

Write the code for a message whose method name is sendSignal.  There are no arguments for this message.

LANGUAGE: Visual Basic CHALLENGE: Write the code for a message whose method name is sendSignal.   There are no arguments for this message....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

printTodaysDate is a function that accepts no parameters and returns no value. Write a statement that calls printTodaysDate.

printTodaysDate is a function that accepts no parameters and returns no value.  Write a statement that calls printTodaysDate.

LANGUAGE: Visual Basic CHALLENGE: printTodaysDate is a function that accepts no parameters and returns no value.   Write a statement that calls printTodaysDate....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write the definition of a function named quadratic that receives three double parameters a,b,c. If the value of a is 0 then the function prints the message “no solution for a=0” and returns. If the value of “b squared” – 4ac is negative, then the code prints out the message “no real solutions” and returns. Otherwise the function prints out the largest solution to the quadratic equation. The formula for the solutions to this equation can be found here: Quadratic Equation of Wikipedia.

Write the definition of a function named quadratic that receives three double parameters a,b,c.  If the value of a is 0 then the function prints the message “no solution for a=0” and returns.  If the value of “b squared” – 4ac is negative, then the code prints out the message “no real solutions” and returns.  Otherwise the function prints out the largest solution to the quadratic equation.  The formula for the solutions to this equation can be found here:  Quadratic Equation of Wikipedia.

LANGUAGE: Visual Basic CHALLENGE: Write the definition of a function named quadratic that receives three double parameters a,b,c.   If the value of a is 0 then the function prints the message “no solution for a=0” and returns.   If the value of “b squared” – 4ac is negative, then the code prints out the message “no...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than or equal to 65, and adds 1 to the variable nonSeniors otherwise.

Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than or equal to 65, and adds 1 to the variable nonSeniors otherwise.

LANGUAGE: Visual Basic CHALLENGE: Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than or equal to 65, and adds 1 to the variable nonSeniors otherwise....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write an if/else statement that compares the value of the variables soldYesterday and soldToday, and based upon that comparison assigns salesTrend the value -1 or 1. -1 represents the case where soldYesterday is greater than soldToday; 1 represents the case where soldYesterday is not greater than soldToday.

Write an if/else statement that compares the value of the variables soldYesterday and soldToday, and based upon that comparison assigns salesTrend the value -1 or 1.  -1 represents the case where soldYesterday is greater than soldToday; 1 represents the case where soldYesterday is not greater than soldToday.

LANGUAGE: Visual Basic CHALLENGE: Write an if/else statement that compares the value of the variables soldYesterday and soldToday, and based upon that comparison assigns salesTrend the value -1 or 1. -1 represents the case where soldYesterday is greater than soldToday; 1 represents the case where soldYesterday is not greater than soldToday....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write an if/else statement that assigns true to the variable fever is the variable temperature is greater than 98.6; otherwise it assigns false to fever.

Write an if/else statement that assigns true to the variable fever is the variable temperature is greater than 98.6; otherwise it assigns false to fever.

LANGUAGE: Visual Basic CHALLENGE: Write an if/else statement that assigns true to the variable fever is the variable temperature is greater than 98.6; otherwise it assigns false to fever....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Assume a text box named textBox from which data will be read.

Assume a text box named textBox from which data will be read.

LANGUAGE: Visual Basic CHALLENGE: Note: in mathematics, division by zero is undefined. Assume a text box named textBox from which data will be read. Given a int variable named callsReceived and another int variable named operatorsOnCall write the necessary code to read values into callsReceived and operatorsOnCall and print out the number of calls received per...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a conditional that assigns true to the variable fever is the variable termperature is greater than 98.6.

Write a conditional that assigns true to the variable fever is the variable termperature is greater than 98.6.

LANGUAGE: Visual Basic CHALLENGE: Write a conditional that assigns true to the variable fever is the variable termperature is greater than 98.6....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a conditional that assigns 10,000 to the variable bonus if the value of the variable goodsSold is greater than 500,000.

Write a conditional that assigns 10,000 to the variable bonus if the value of the variable goodsSold is greater than 500,000.

LANGUAGE: Visual Basic CHALLENGE: Write a conditional that assigns 10,000 to the variable bonus if the value of the variable goodsSold is greater than 500,000....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.

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

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More