Answer:
The answer to this question is given below in the explanation section
Explanation:
shoNum + shoNum2 = shoTotal
in this code statement, the order of operation is wrong because the calculation in programming always done at the right side of dependent variables. so the correct statement of code is
<em> shoTotal = shoNum + shoNum2;</em>
shoNum = 10 * 4
This statement is programmatically correct, because the ShoNum value becomes 40 after performing the multiplication operation on its assigned value (10 multiply by 4). However, it is noted that the empty space mostly ignored by the compiler. So, the correct is <em>shoNum = 10*4;</em>
Dim decPrice As Decimal = "$4.99"
The dollar sign is appeared in along with its value. So, if you assign value to a decimal variable, you need to assign only digit value (do not mix value with symbol or text) and also do not put quotation marks around value, if you put quotation marks around value then this value will be consider as a text value.
So, the correct statement is :
<em>Dim decPrice As Decimal = 4.99;</em>
shoCube= (shoSide)3
In this statement, cube is calculated of shoSide variable, mathematically it is right, but programmatically it is incorrect. Because, you missed the multiplication operation (*) between the operand shoSide and 3. it should
be as shoSide raise to power 3.
the correct statement is : shoCube = (shoSide * shoSide *shoSide);