Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

1 <script> 2 3 function display(s) {document.write( answer: ${s} ) ;} 4…

Question

1 <script>
2
3 function display(s) {document.write( answer: ${s} ) ;}
4
5 var x = 10;
6
7 display(x * (3 + 2));
9
10 </script>
this code solves the expression ( x(3 + 2) ) when ( x = 10 ).
record the answer given by your js code here:

  1. solve the expressions below by editing and running your code with the given expressions and variables. you may have to add additional lines to add new variables.
a) ( 2x + 11 )( x = 11 )answer:
b) ( x + 11 - 3 )( x = 21 )answer:
c) ( 3x - 27 )( x = 9 )answer:
d) ( 4y - 3 )( y = 5 )answer:
e) ( y + 102 )( y = 29 )answer:
f) ( 5x + 3y )( x = 5, y = 7 )answer:

Explanation:

Step1: Substitute \(x = 11\) into \(2x+11\)

\(2\times11 + 11=22 + 11\)

Step2: Calculate the sum

\(22+11 = 33\)

Step3: Substitute \(x = 21\) into \(x + 11-3\)

\(21+11 - 3=32 - 3\)

Step4: Calculate the difference

\(32-3=29\)

Step5: Substitute \(x = 9\) into \(3x-27\)

\(3\times9-27 = 27-27\)

Step6: Calculate the difference

\(27 - 27=0\)

Step7: Substitute \(y = 5\) into \(4y-3\)

\(4\times5-3=20 - 3\)

Step8: Calculate the difference

\(20-3 = 17\)

Step9: Substitute \(y = 29\) into \(y + 102\)

\(29+102=131\)

Step10: Substitute \(x = 5\) and \(y = 7\) into \(5x+3y\)

\(5\times5+3\times7=25 + 21\)

Step11: Calculate the sum

\(25+21=46\)

Answer:

a) \(33\)
b) \(29\)
c) \(0\)
d) \(17\)
e) \(131\)
f) \(46\)