Describe the function computed by the following Bare Bones program, assuming the function”s inputs… 1 answer below »

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

1. Describe the function computed by the following Bare Bones program, assuming the function’s inputs are represented by X and Y and its output by Z:

copy X to Z;

copy Y to Aux;

while Aux not 0 do;

decr Z;

decr Aux;

end;

2. Describe the function computed by the following Bare Bones program, assuming the function’s inputs are represented by X and Y and its output by Z:

clear Z;

copy X to Aux1;

copy Y to Aux2;

while Aux1 not 0 do;

while Aux2 not 0 do;

decr Z;

decr Aux2;

end;

decr Aux1;

end;