Initially : *y = *A

Step 1: *i *= B

*y* = C

Step 2 : *i* = D

*y* = E

Find the values of A, B, C, D, and E by evaluating 3*x*2 + *x *+ 1 at *x *=* *2 based on the given algorithm.Working through each step of the algorithm is shown above: