Wyo Visual Basic
Ch. 3 Worksheet #7
Name -

Translating Pseudocode into VB Code

1. Write a statement that computes the sum of intNum1, intNum2, and intNum3 and that assigns that sum to the variable intTotal.

 

2. Write a statement that computes the product of sngPrice and intQuantity minus a 20% discount and that stores that result into the variable sngTotalPrice.

 

3. Write a statement that computes the average of intGrade1, intGrade2, and intGrade3 and stores that value as a percentage (e.g. 0.75 not 75) into the variable sngGradePercentage.