Reference no: EM132449674
1. A procedure needs to store an inventory item's name, height, and weight. The height may have a decimal place. The weight will be whole numbers only. Write the declaration statements to create the necessary procedure-level variables.
2. Write an assignment statement that adds the contents of the sales1 variable to the contents of the sales2 variable and then assigns the sum to an existing variable named total Sales. All of the variables have the Decimal data type.
3. Write the statement to declare a procedure-level named constant named TaxRate whose value is .2. The named constant should have the Double data type.
4. Write the assignment statement to assign the string Dell to the string variable compType.
5. Write the assignment statement to store the contents of the unitsTextBox in an Integer variable named numberOfUnits.
6. Write the assignment statement to assign the contents of an Integer variable named numberOfUnits to the unitsLabel.
7. Write the statement to declare a named constant named BonusRate whose value is .05. The named constant should have the Decimal data type.
8. Write the statement to declare a String variable that can be used by two procedures in the same form. Name the variable employeeName. Also specify where you will need to enter the statement and whether the variable is a procedure-level or field level variable.
9. Write the statement to assign to the payLabel the value stored in a Decimal variable named grossPay. The value should be displayed with a dollar sign and two decimal places.
10. Write the statement to add together the contents of two Decimal variables named westSales and eastSales and then assign the sum to a Decimal variable named totalSales
11. Write two versions of an assignment statement that multiplies the contents of the salary variable by the number 1.5 and then assigns the result to the salary variable. The salary variable has the Decimal data type. Use the standard multiplication and assignment operators in one of the statements. Use the appropriate combined assignment operator in the other statement.