Question: Given two numbers X and Y = 1 3 . 1 0 3 + y 2 . 1 0 ? + 3 1 . 1

Given two numbers X and Y =13.103+ y2.10?+31.10+ yo, the product P = yo. X canbe expressed as P = vo. X.10\deg +41.X.101+ y2. X.102+3. X.103Which of the following algorithms compute P? Mark all that apply.A <=0; B <= X;for i in 0 to 3 loopA <= A + y(i)*B;B <= B*10;end loop;P <= A;OrP <=0; A <= X;for i in 0 to 2 loopP <= P + y(i)*A;A <= A*10;end loop;P <= P +(3)*A;OrA <= X;for i in 0 to 2 loopP <= P + y(i)*A;A <= A*10;end loop;P <= P + y (3)*A;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!