Slide 1 CS 240 C OMPUTER P ROGRAMMING 1 Flowcharts 1 Slide 2 A LGORITHM An informal definition of an algorithm is: 2 a step-by-step method for solving a problem or doing…