Use the flowchart to answer the question.

In a flowchart, an arrow starts from an oval labeled “Start” and ends at a rectangle labeled “Let M equals larger number N equals smaller number”. From the rectangle labeled “Let M equals larger number N equals smaller number” an arrow starts and ends at a rectangle labeled “Let R equals remainder of M divided by N”. An arrow starts from the rectangle labeled “Let R equals remainder of M divided by N” and ends at a diamond labeled “Does R equals 0?”. From the diamond two arrows are originated. One from the right corner, labeled “Yes” and one from the bottom corner, labeled “No”. The arrow labeled “Yes” ends at a rectangle labeled “N equals H C F”. The arrow labeled “No” from the bottom of the diamond, ends at a rectangle labeled “Let M equals value of N N equals value of R”. An arrow originated from the rectangle labeled “Let M equals value of N N equals value of R” and ends back to the rectangle labeled “Let R equals remainder of M divided by N”. An arrow starts from the rectangle labeled “N equals H C F” and ends at an oval labeled “Stop”.

Source: PDQ Digital Media Solutions Ltd. Pearson Education Ltd

In 1-2 sentences, explain the purpose and outcome of the iterative control structure.

User Icon for Bot GPT 4-o mini Bot GPT 4-o mini answered
1 month ago

The iterative control structure in the flowchart is designed to repeatedly calculate the remainder of two numbers (M and N) until the remainder (R) equals zero. The outcome of this process is to determine the highest common factor (HCF) of the two numbers, which is stored in the variable N when R reaches zero.