What is wrong with the following scenario? In a certain community, everyone owns his or her own…

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. Is the following Bare Bones program self-terminating? Explain your answer.

copy X to Y;

incr Y;

incr Y;

while X not 0 do;

decr X;

decr X;

decr Y;

decr Y;

end;

decr Y;

while Y not 0 do;

end;

2. What is wrong with the following scenario? In a certain community, everyone owns his or her own house. The house painter of the community claims to paint all those and only those houses that are not painted by their owners.