| Visual Basic Writing Assignment Statements Worksheet #2 |
Name - |
1. Write a statement that assigns the value of 12 divided by 3 into the variable intResult.
2. Write a statement that assigns the value of intNum multiplied with the value 2.5 into the variable intResult.
3. Write a statement that assigns the remainder of intPurchased divided by the constant intDOZEN into the variable intResult.
4. Write a statement that divides the sum of intMine plus intYours in half and stores the result in the variable dblResult.
5. Write a statement that converts a fahrenheit temperature to celsius using the following formula. Use dblC and dblF as variable names.
![]()
6. A student has intNickels nickels, intDimes dimes, and intQuarters quarters. Write an assignment statement that converts all of this currency into pennies and stores the result into the variable intPennies. (For example, if the student has 5 nickels, 3 dimes, and 1 quarter then the variable intNickels is equal to 5, the variable intDimes is equal to 3, and the variable intQuarters is equal to 1.)