Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Exercises I through 6, evaluate the numeric expression without a computer, an

ID: 3749107 • Letter: I

Question

In Exercises I through 6, evaluate the numeric expression without a computer, and then use Visual Basic to check your answer. 1. 3* 4 3. 1/(2A 3) 5. (5 -3)*4 2. 72 4. 3+ (4 5) 6.3*((-2) ^ 5) In Exercises 7 through 12, evaluate the expression. 7. 713 9. 515 11. 1414 8. 14 Mod 4 10. 7 Mod3 12. 5 Mod 5 In Exercises 13 through 18, determine whether the name is a valid variable name. 13. sales.2015 15. fOrM_1040 17. expenses? 14. room&Board 16. 1040B 18. INCOME 2015 2, b = 3 and In Exercises 19 through 24, evaluate the numeric expression where a c= 4. 19. (a * b)+c 21. (1 + b)*c 23. b (c- a) 20. a (b + c) 22, a ^ c 24. (c -a) b In Exercises 25 through 30, write lines of code to calculate and display the value of the expression. 25. 7.8+5 27, 5.5% of 20 29. 17(3 + 162) 26. (I + 2.9) 28. 15 3(2 +31) 30. 4 1/2 -3 5/8

Explanation / Answer


Q1- 3*4 =12 straight awaya mutiplication
2-7^2 = 7*7 =49
3-1/(2^3)= first braces will be solved so 2^3 is 8 then 1/8 will be solved which is 0.125
4-3+(4*5) = againn first paranthesis will be solved so 4*5=20 then 3+20=23
5-(5-3)*4 similarly 5-3=2 then 2*4=8
6-3*((-2)^5)=(-2^5)=32 32*3=96
7= 7/3=2 straight away division
8-14 mod 4 = 14 % 4= 2 because (4*3)+2 so 2 is remainder
9-5/5=1 straight away division no complexity
10-7 MOD 3 = 7 %3 =1 as (3*2)+1
11-14= 2 as ((4*3)+2)=3
12- 5 Mod 5 = 0 as 5%5=(5*1)+0
13-sales.2015 - invalid as a variable name can have letters, numbers and underscore
14-room&Board-invalid as a variable name can have letters, numbers and underscore
15-fOrM_1040 - valid
16-1040B - invalid as the variabble name should start with either uppercasae or lowercase letter or an underscore.
17-expenses? - invalid asit contains a ? which is not allowed.
18-INCOME 2015 - invalid as it contains a space between E and 2
19- a=2 b=3 c=4 (a*b)+c = (2*3)+4=6+4=10
20- a*(b+c)=2*(3+4)=2*7=14
21- (1+b)*c= (1+3)*4 =4*4 =16
22-a^c= 2^4 = 32
23- b^(c-a) = 3^(4-2)=3^2=9
24-(c-a)^b = (4-2)^3= 2^3 = 8
25- line of code let say we want to store the result in variable a so a=(7*8)+5
26- a=pow((1+(2*9)),3)
27- a= (5.5/100)*20;
28- a=15-(3*(2+ pow(3,4)));
29- a= 17*(3+162);
30- a=(4*(1/2))-(3*(5/8));

if you like the answer please provide a thumbs up.