In the FLOWCHART, one LOOPS (repeating some command) UNTIL a "Yes"ANSWER allows STOPPING.
Below, we'll do that by STAGE, represent passage from one SUBSTAGE to another by an ARROW. And we'll do a simple probelm to avoid extra work.
How HOPPY PERFORMS 3 + 2 = 3:
| | | | | | | | | * * * | | * * | ---------- ----------START Þ IS 2ND ADDEND BASKET EMPTY? Þ NO Þ TRANSFER 1 COUNTABLE FROM LESSER TO OTHER BASKET Þ| | | | | | | | |* * * * | | * | ---------- ----------IS LESSER BASKET EMPTY? Þ NO Þ TRANSFER 1 COUNTABLE FROM LESSER TO OTHER BASKET Þ| | | | | | | | |** * * *| | | ---------- ----------IS LESSER BASKET EMPTY? -> YES -> STOP TRANSFERRING & COUNT COUNTABLES IN NONEMPTY BASKET -> 5 -> HAVE PRINTER PRINT TOTAL OF 5 AS SUM.Please note this this STAGING of FLOWCHART PROCEEDS LIKE A REWRITE PRODUCTION.