Slide 1 Chapter 2 - Algorithms and Design Example Algorithm and Variables print Statement input Statement Assignment Statement if Statement Flowcharts Flow of Control Looping…