| Visual Basic Writing Assignment Statements Worksheet #2 |
Name - |
1. Write a statement that assigns the value of 12 divided by 3 into the variable result.
2. Write a statement that assigns the value of num multiplied with the value 2.5 into the variable result.
3. Write a statement that assigns the remainder of purchased divided by the constant DOZEN into the variable result.
4. Write a statement that divides the sum of mine plus yours in half and stores the result in the variable result.
5. Write a statement that converts a fahrenheit temperature to celsius using the following formula. Use C and F as variable names.
![]()
6. A student has nickels nickels, dimes dimes, and quarters quarters. Write an assignment statement that converts all of this currency into pennies and stores the result into the variable pennies. (For example, if the student has 5 nickels, 3 dimes, and 1 quarter then the variable nickels is equal to 5, the variable dimes is equal to 3, and the variable quarters is equal to 1.)