tbh don't really gotta a clue abt flowcharts but i don't think the program ends with X being false right? but everything else for B looks fine, and does the loop mean that when Z is true it repeats the module, i thought it would be when Z is false? sorry bud i really don't got a clue