Question: Given two numbers x and Y = y 3 * 1 0 3 + y 2 * 1 0 2 + y 1 * 1

Given two numbers x and Y=y3*103+y2*102+y1*10+y0, the product P=y0*x can be expressed as
P=y0*x*100+y1*x*101+y2*x*102+y3*x*103.
Which of the following algorithms compute P? Mark all that apply.
iAA+y(i)**B;BB**10PAP0;AxiPP+y(i)**A;AA**10;AxiPP+y(3)**AA
end loop;
PP+y(3)**A;P
A
end loop;
PP+y(3)**A;P
Ax;
for iin0to2 loop
P
A
end loop;
PP+y(3)**A;A0;B;
for iin0to3 loop
AA+y(i)**B;
BB**10;
end loop;
PA;
P0;Ax;
for iinto2 loop
PP+y(i)**A;
AA**10;
end loop;
P
Ax;
for iin0to2 loop
P
A
end loop;
PP+y(3)**A;
 Given two numbers x and Y=y3*103+y2*102+y1*10+y0, the product P=y0*x can be

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!