Visual Basic
Writing Assignment Statements Worksheet #1
Name -

1. Write an assignment statement that computes the sum of intApples and intOranges and that assigns that sum to the variable intFruit.



2. Write an assignment statement that computes the product of dblPrice and intQuantity and that stores that result into the variable dblAmount.



3. Write a statement that computes the average of intGame1, intGame2, and intGame3 and stores that value into the variable dblAverage.



4. Write a statement that multiplies 6 times the difference between intAge and intYearsLeft and that stores that value to the variable intAnswer.