3.9 to 3.15 Also refer to as Program Contains set of instructions that tells the computer how to perform specific task. Each line of code is referred to as a statement. Is…